diff options
Diffstat (limited to 'tests/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr')
| -rw-r--r-- | tests/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr b/tests/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr new file mode 100644 index 00000000000..ccd0040030d --- /dev/null +++ b/tests/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr @@ -0,0 +1,15 @@ +error: lifetime may not live long enough + --> $DIR/error-handling.rs:22:16 + | +LL | fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> { + | -- -- 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` + +error: aborting due to previous error + |
