blob: dc41cbc5fe3f8d5634f1a134e5eb3c4bbb3eba3b [file] [log] [blame]
error: at least one trait must be specified
--> $DIR/generic_type_does_not_live_long_enough.rs:9:24
|
LL | type WrongGeneric<T> = impl 'static;
| ^^^^^^^^^^^^
error[E0308]: mismatched types
--> $DIR/generic_type_does_not_live_long_enough.rs:6:18
|
LL | let z: i32 = x;
| --- ^ expected `i32`, found opaque type
| |
| expected due to this
|
= note: expected type `i32`
found opaque type `WrongGeneric::<&{integer}>`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.