1 error: at least one trait must be specified
2 --> $DIR/generic_type_does_not_live_long_enough.rs:10:24
4 LL | type WrongGeneric<T> = impl 'static;
7 error: non-defining opaque type use in defining scope
8 --> $DIR/generic_type_does_not_live_long_enough.rs:6:18
13 note: used non-generic type `&'static i32` for generic parameter
14 --> $DIR/generic_type_does_not_live_long_enough.rs:10:19
16 LL | type WrongGeneric<T> = impl 'static;
19 error[E0310]: the parameter type `T` may not live long enough
20 --> $DIR/generic_type_does_not_live_long_enough.rs:14:5
25 = help: consider adding an explicit lifetime bound `T: 'static`...
27 error: aborting due to 3 previous errors
29 For more information about this error, try `rustc --explain E0310`.