2019-08-27 13:04:48 +02:00
|
|
|
error: expected identifier, found keyword `while`
|
2019-01-06 18:33:05 +03:00
|
|
|
--> $DIR/keyword-while-as-identifier.rs:4:9
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let while = "foo";
|
2019-08-27 13:04:48 +02:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2022-01-27 14:53:39 -08:00
|
|
|
help: escape `while` to use it as an identifier
|
2019-08-27 13:04:48 +02:00
|
|
|
|
|
|
|
|
LL | let r#while = "foo";
|
2022-01-27 14:53:39 -08:00
|
|
|
| ++
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|