Files
rust/tests/ui/async-await/pin-ergonomics/sugar-no-const.stderr

17 lines
464 B
Plaintext
Raw Normal View History

2024-09-20 12:09:18 -07:00
error: expected one of `!`, `(`, `::`, `;`, `<`, or `=`, found `i32`
--> $DIR/sugar-no-const.rs:7:18
2024-09-20 12:09:18 -07:00
|
LL | let _x: &pin i32 = todo!();
| - ^^^ expected one of `!`, `(`, `::`, `;`, `<`, or `=`
| |
| while parsing the type for `_x`
|
help: there is a keyword `in` with a similar name
|
LL - let _x: &pin i32 = todo!();
LL + let _x: &in i32 = todo!();
|
2024-09-20 12:09:18 -07:00
error: aborting due to 1 previous error