2020-01-08 10:05:31 -06:00
|
|
|
error[E0599]: no associated item named `Item` found for type parameter `T` in the current scope
|
2018-12-07 12:15:36 -06:00
|
|
|
--> $DIR/issue-38919.rs:2:8
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2022-06-20 10:43:20 -05:00
|
|
|
LL | fn foo<T: Iterator>() {
|
|
|
|
| - associated item `Item` not found for this type parameter
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | T::Item;
|
2019-03-10 18:20:15 -05:00
|
|
|
| ^^^^ associated item not found in `T`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|