2018-10-20 15:36:17 -05:00
|
|
|
error: missing `fn`, `type`, or `const` for trait-item declaration
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/issue-21153.rs:1:29
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | trait MyTrait<T>: Iterator { //~ ERROR missing `fn`, `type`, or `const`
|
|
|
|
| _____________________________^
|
|
|
|
LL | | Item = T;
|
|
|
|
| |____^ missing `fn`, `type`, or `const`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|