rust/src/test/ui/regions/region-multiple-lifetime-bounds-on-fns-where-clause.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
631 B
Plaintext
Raw Normal View History

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;
| ^ one type is more general than the other
|
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::<'_, '_, '_>}`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.