rust/tests/ui/parser/misspelled-keywords/impl-trait.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
505 B
Plaintext
Raw Normal View History

2024-09-01 21:27:43 -05:00
error: expected one of `(`, `+`, `,`, `::`, `<`, `=`, or `>`, found `Debug`
--> $DIR/impl-trait.rs:1:18
|
LL | fn code<T: impll Debug>() -> u8 {}
| ^^^^^ expected one of 7 possible tokens
|
help: there is a keyword `impl` with a similar name
|
LL | fn code<T: impl Debug>() -> u8 {}
| ~~~~
2024-09-01 21:27:43 -05:00
help: you might have meant to end the type parameters here
|
LL | fn code<T: impll> Debug>() -> u8 {}
| +
error: aborting due to 1 previous error