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