bless output of ui test impl-trait/multiple-lifetimes/error-handling.rs

Some impl Trait fixes lead to locating more accurately the cause of
a universal region error with a user annotation
This commit is contained in:
Remy Rakic 2020-03-30 01:28:27 +02:00
parent fcd12bd2f4
commit 82424634a3

View File

@ -1,10 +1,13 @@
error: lifetime may not live long enough
--> $DIR/error-handling.rs:13:56
--> $DIR/error-handling.rs:23:16
|
LL | fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> {
| -- -- lifetime `'b` defined here ^^^^^^^^^ opaque type requires that `'a` must outlive `'b`
| -- -- lifetime `'b` defined here
| |
| lifetime `'a` defined here
...
LL | let _: &'b i32 = *u.0;
| ^^^^^^^ type annotation requires that `'a` must outlive `'b`
|
= help: consider adding the following bound: `'a: 'b`