rust/src/test/ui/parser/issue-21153.stderr
Mazdak Farrokhzad 63a9030e7b Unify associated item parsing.
An exception is `fn` params.
2019-12-12 17:54:49 +01:00

11 lines
287 B
Plaintext

error: missing `fn`, `type`, or `const` for associated-item declaration
--> $DIR/issue-21153.rs:1:29
|
LL | trait MyTrait<T>: Iterator {
| _____________________________^
LL | | Item = T;
| |____^ missing `fn`, `type`, or `const`
error: aborting due to previous error