1 error[E0308]: mismatched types
2 --> $DIR/generic_type_does_not_live_long_enough.rs:16:18
4 LL | let z: i32 = x; //~ ERROR mismatched types
5 | ^ expected i32, found opaque type
7 = note: expected type `i32`
8 found type `WrongGeneric::<&{integer}>`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0308`.