]> git.lizzy.rs Git - rust.git/blob - src/test/ui/existential_types/generic_type_does_not_live_long_enough.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / existential_types / generic_type_does_not_live_long_enough.nll.stderr
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
5    |                  ^ expected i32, found opaque type
6    |
7    = note: expected type `i32`
8               found type `WrongGeneric::<&{integer}>`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.