]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-lifetime-bounds-on-fns.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / regions / regions-lifetime-bounds-on-fns.nll.stderr
1 error[E0308]: mismatched types
2   --> $DIR/regions-lifetime-bounds-on-fns.rs:30:43
3    |
4 LL |     let _: fn(&mut &isize, &mut &isize) = a; //~ ERROR mismatched types
5    |                                           ^ expected concrete lifetime, found bound lifetime parameter
6    |
7    = note: expected type `for<'r, 's, 't0, 't1> fn(&'r mut &'s isize, &'t0 mut &'t1 isize)`
8               found type `for<'r, 's> fn(&'r mut &isize, &'s mut &isize) {a::<'_, '_>}`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.