Closed
Description
If you are trying to write a new trait that should look like this:
trait MyTrait<T> : Iterator {
type Item = T
...
}
And you leave out the word type
, like in this example, you get the error message
error: expected `fn`, found `Item`
Even though the missing word is type
, not fn
.