rust/tests/ui/parser/recover/recover-assoc-eq-missing-term.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

19 lines
430 B
Plaintext

error: missing type to the right of `=`
--> $DIR/recover-assoc-eq-missing-term.rs:3:17
|
LL | bar::<Item = >();
| ^^^
|
help: to constrain the associated type, add a type after `=`
|
LL | bar::<Item = TheType>();
| +++++++
help: remove the `=` if `Item` is a type
|
LL - bar::<Item = >();
LL + bar::<Item >();
|
error: aborting due to 1 previous error