2021-03-07 15:08:52 +00:00
|
|
|
error[E0308]: mismatched types
|
2022-04-01 17:13:25 +00:00
|
|
|
--> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:22:56
|
2020-06-06 10:31:51 +00:00
|
|
|
|
|
|
|
|
LL | let _: fn(&mut &isize, &mut &isize, &mut &isize) = a;
|
2022-05-20 06:00:42 +00:00
|
|
|
| ^ one type is more general than the other
|
2021-03-07 15:08:52 +00:00
|
|
|
|
|
2022-09-18 20:02:56 +00:00
|
|
|
= note: expected fn pointer `for<'r, 's, 't, 't0, 't1, 't2> fn(&'r mut &'s isize, &'t mut &'t0 isize, &'t1 mut &'t2 isize)`
|
|
|
|
found fn item `for<'r, 's, 't> fn(&'r mut &isize, &'s mut &isize, &'t mut &isize) {a::<'_, '_, '_>}`
|
2019-01-27 11:03:21 +00:00
|
|
|
|
2022-05-20 06:00:42 +00:00
|
|
|
error: aborting due to previous error
|
2019-01-27 11:03:21 +00:00
|
|
|
|
2021-03-07 15:08:52 +00:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|