Files
rust/tests/ui/impl-trait/issues/issue-92305.stderr

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

27 lines
859 B
Plaintext
Raw Normal View History

2022-05-02 06:43:17 +09:00
error[E0107]: missing generics for struct `Vec`
--> $DIR/issue-92305.rs:5:45
|
LL | fn f<T>(data: &[T]) -> impl Iterator<Item = Vec> {
| ^^^ expected at least 1 generic argument
|
help: add missing generic argument
|
LL | fn f<T>(data: &[T]) -> impl Iterator<Item = Vec<T>> {
| +++
2022-05-02 06:43:17 +09:00
error[E0282]: type annotations needed
--> $DIR/issue-92305.rs:7:5
|
LL | iter::empty()
| ^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `empty`
|
help: consider specifying the generic argument
|
LL | iter::empty::<T>()
| +++++
error: aborting due to 2 previous errors
2022-05-02 06:43:17 +09:00
Some errors have detailed explanations: E0107, E0282.
For more information about an error, try `rustc --explain E0107`.