diff options
Diffstat (limited to 'src/test/ui/regions/region-lifetime-bounds-on-fns-where-clause.stderr')
-rw-r--r-- | src/test/ui/regions/region-lifetime-bounds-on-fns-where-clause.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/regions/region-lifetime-bounds-on-fns-where-clause.stderr b/src/test/ui/regions/region-lifetime-bounds-on-fns-where-clause.stderr new file mode 100644 index 000000000..48f2e1a2f --- /dev/null +++ b/src/test/ui/regions/region-lifetime-bounds-on-fns-where-clause.stderr @@ -0,0 +1,12 @@ +error[E0308]: mismatched types + --> $DIR/region-lifetime-bounds-on-fns-where-clause.rs:20:43 + | +LL | let _: fn(&mut &isize, &mut &isize) = a; + | ^ one type is more general than the other + | + = note: expected fn pointer `for<'r, 's, 't0, 't1> fn(&'r mut &'s isize, &'t0 mut &'t1 isize)` + found fn item `for<'r, 's> fn(&'r mut &isize, &'s mut &isize) {a::<'_, '_>}` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0308`. |