Rollup merge of #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/rust#61463
This commit is contained in:
Jonathan Brouwer 2026-01-19 20:53:25 +01:00 committed by GitHub
commit 0833ace2fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,7 @@
// Regression test for <https://github.com/rust-lang/rust/issues/61463>
// A test for the issue where the variable meta is mistakenly treated as a reserved keyword.
fn main() {
let xyz = meta;
//~^ ERROR cannot find value `meta` in this scope [E0425]
}

View file

@ -0,0 +1,9 @@
error[E0425]: cannot find value `meta` in this scope
--> $DIR/meta-is-not-reserved.rs:5:15
|
LL | let xyz = meta;
| ^^^^ not found in this scope
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0425`.