]> git.proxmox.com Git - rustc.git/blob - src/test/ui/regions/regions-lifetime-bounds-on-fns.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.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:20:43
3 |
4 LL | let _: fn(&mut &isize, &mut &isize) = a;
5 | ---------------------------- ^ expected concrete lifetime, found bound lifetime parameter
6 | |
7 | expected due to this
8 |
9 = note: expected fn pointer `for<'r, 's, 't0, 't1> fn(&'r mut &'s isize, &'t0 mut &'t1 isize)`
10 found fn item `for<'r, 's> fn(&'r mut &isize, &'s mut &isize) {a::<'_, '_>}`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.