Skip to content

Commit 0833ace

Browse files
Rollup merge of rust-lang#151361 - test-issue-61463, r=lqd
add test for issue 61463 A test for the issue where the variable meta is mistakenly treated as a reserved keyword. close rust-lang#61463
2 parents e8c3dd3 + eeed337 commit 0833ace

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Regression test for <https://github.com/rust-lang/rust/issues/61463>
2+
// A test for the issue where the variable meta is mistakenly treated as a reserved keyword.
3+
4+
fn main() {
5+
let xyz = meta;
6+
//~^ ERROR cannot find value `meta` in this scope [E0425]
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0425]: cannot find value `meta` in this scope
2+
--> $DIR/meta-is-not-reserved.rs:5:15
3+
|
4+
LL | let xyz = meta;
5+
| ^^^^ not found in this scope
6+
7+
error: aborting due to 1 previous error
8+
9+
For more information about this error, try `rustc --explain E0425`.

0 commit comments

Comments
 (0)