Skip to content

Commit b3f32d1

Browse files
committed
Add ui test for rust-lang#99910
1 parent accb8e3 commit b3f32d1

3 files changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// run-rustfix
2+
3+
fn main() {
4+
const _FOO: i32 = 123;
5+
//~^ ERROR const` and `let` are mutually exclusive
6+
const _BAR: i32 = 123;
7+
//~^ ERROR `const` and `let` are mutually exclusive
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// run-rustfix
2+
3+
fn main() {
4+
const let _FOO: i32 = 123;
5+
//~^ ERROR const` and `let` are mutually exclusive
6+
let const _BAR: i32 = 123;
7+
//~^ ERROR `const` and `let` are mutually exclusive
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error: `const` and `let` are mutually exclusive
2+
--> $DIR/issue-99910-const-let-mutually-exclusive.rs:4:5
3+
|
4+
LL | const let _FOO: i32 = 123;
5+
| ^^^^^^^^^ help: remove `let`: `const`
6+
7+
error: `const` and `let` are mutually exclusive
8+
--> $DIR/issue-99910-const-let-mutually-exclusive.rs:6:5
9+
|
10+
LL | let const _BAR: i32 = 123;
11+
| ^^^^^^^^^ help: remove `let`: `const`
12+
13+
error: aborting due to 2 previous errors
14+

0 commit comments

Comments
 (0)