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
22 LL | fn wrong_generic<T>(t: T) -> WrongGeneric<T> {
23 | - help: consider adding an explicit lifetime bound...: `T: 'static`
25 | ^ ...so that the type `T` will meet its required lifetime bounds
27 error: aborting due to 3 previous errors
29 For more information about this error, try `rustc --explain E0310`.