Skip to content

Commit 24fa10f

Browse files
committed
Update tests
1 parent 4dbe2ac commit 24fa10f

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
fn main() {
2-
let const = "foo"; //~ ERROR expected `{`, found `=`
2+
let const = "foo";
3+
//~^ ERROR expected `{`, found `=`
4+
//~| ERROR inline-const is experimental [E0658]
35
}

src/test/ui/parser/keyword-const-as-identifier.stderr

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,15 @@ error: expected `{`, found `=`
44
LL | let const = "foo";
55
| ^ expected `{`
66

7-
error: aborting due to previous error
7+
error[E0658]: inline-const is experimental
8+
--> $DIR/keyword-const-as-identifier.rs:2:9
9+
|
10+
LL | let const = "foo";
11+
| ^^^^^
12+
|
13+
= note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information
14+
= help: add `#![feature(inline_const)]` to the crate attributes to enable
15+
16+
error: aborting due to 2 previous errors
817

18+
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)