]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / generic_type_does_not_live_long_enough.nll.stderr
1 error: at least one trait must be specified
2 --> $DIR/generic_type_does_not_live_long_enough.rs:9:24
3 |
4 LL | type WrongGeneric<T> = impl 'static;
5 | ^^^^^^^^^^^^
6
7 error[E0308]: mismatched types
8 --> $DIR/generic_type_does_not_live_long_enough.rs:6:18
9 |
10 LL | let z: i32 = x;
11 | --- ^ expected `i32`, found opaque type
12 | |
13 | expected due to this
14 |
15 = note: expected type `i32`
16 found opaque type `WrongGeneric::<&{integer}>`
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0308`.