rust/src/test/ui/parser/keyword-struct-as-identifier.stderr

8 lines
258 B
Text

error: expected pattern, found keyword `struct`
--> $DIR/keyword-struct-as-identifier.rs:4:9
|
LL | let struct = "foo"; //~ error: expected pattern, found keyword `struct`
| ^^^^^^ expected pattern
error: aborting due to previous error