]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/generic_not_used.full_tait.stderr
Loop over all opaque types instead of looking at just the first one with the same...
[rust.git] / src / test / ui / type-alias-impl-trait / generic_not_used.full_tait.stderr
1 error: at least one trait must be specified
2   --> $DIR/generic_not_used.rs:8:33
3    |
4 LL | type WrongGeneric<T: 'static> = impl 'static;
5    |                                 ^^^^^^^^^^^^
6
7 warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
8   --> $DIR/generic_not_used.rs:3:32
9    |
10 LL | #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
11    |                                ^^^^^^^^^^^^^^^^^^^^^
12    |
13    = note: `#[warn(incomplete_features)]` on by default
14    = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
15
16 error: type parameter `V` is part of concrete type but not used in parameter list for the `impl Trait` type alias
17   --> $DIR/generic_not_used.rs:11:73
18    |
19 LL |   fn wrong_generic<U: 'static, V: 'static>(_: U, v: V) -> WrongGeneric<U> {
20    |  _________________________________________________________________________^
21 LL | |
22 LL | |     v
23 LL | | }
24    | |_^
25
26 error: aborting due to 2 previous errors; 1 warning emitted
27