1 error: at least one trait must be specified
2 --> $DIR/generic_type_does_not_live_long_enough.rs:14: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:10:18
13 note: used non-generic type `&'static i32` for generic parameter
14 --> $DIR/generic_type_does_not_live_long_enough.rs:14: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:18:5
23 | ^ ...so that the type `T` will meet its required lifetime bounds
25 help: consider adding an explicit lifetime bound...
27 LL | fn wrong_generic<T: 'static>(t: T) -> WrongGeneric<T> {
30 error: aborting due to 3 previous errors
32 For more information about this error, try `rustc --explain E0310`.