1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
error[E0637]: `&` without an explicit lifetime name cannot be used here
--> $DIR/issue-109071.rs:8:17
|
LL | type Item = &[T];
| ^ explicit lifetime name needed here
error[E0107]: missing generics for struct `Windows`
--> $DIR/issue-109071.rs:7:9
|
LL | impl<T> Windows {
| ^^^^^^^ expected 1 generic argument
|
note: struct defined here, with 1 generic parameter: `T`
--> $DIR/issue-109071.rs:5:8
|
LL | struct Windows<T> { t: T }
| ^^^^^^^ -
help: add missing generic argument
|
LL | impl<T> Windows<T> {
| +++
error[E0223]: ambiguous associated type
--> $DIR/issue-109071.rs:15:22
|
LL | fn T() -> Option<Self::Item> {}
| ^^^^^^^^^^
|
help: use fully-qualified syntax
|
LL - fn T() -> Option<Self::Item> {}
LL + fn T() -> Option<<Windows<T> as IntoAsyncIterator>::Item> {}
|
LL - fn T() -> Option<Self::Item> {}
LL + fn T() -> Option<<Windows<T> as IntoIterator>::Item> {}
|
error[E0658]: inherent associated types are unstable
--> $DIR/issue-109071.rs:8:5
|
LL | type Item = &[T];
| ^^^^^^^^^^^^^^^^^
|
= note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
= help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error: aborting due to 4 previous errors
Some errors have detailed explanations: E0107, E0223, E0637, E0658.
For more information about an error, try `rustc --explain E0107`.
|