blob: 89eb644e106f90133becaf18056fc6148d0c52d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
error: expected identifier, found keyword `struct`
--> $DIR/keyword-struct-as-identifier.rs:4:9
|
LL | let struct = "foo";
| ^^^^^^ expected identifier, found keyword
|
help: escape `struct` to use it as an identifier
|
LL | let r#struct = "foo";
| ++
error: aborting due to 1 previous error
|