Files
rust/tests/ui/suggestions/trait-hidden-method.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
392 B
Plaintext
Raw Normal View History

error[E0191]: the value of the associated type `Item` in `Iterator` must be specified
--> $DIR/trait-hidden-method.rs:4:33
2023-02-14 14:31:18 +00:00
|
LL | Box::new(1..=10) as Box<dyn Iterator>
| ^^^^^^^^ help: specify the associated type: `Iterator<Item = Type>`
error: aborting due to 1 previous error
2023-02-14 14:31:18 +00:00
For more information about this error, try `rustc --explain E0191`.