rust/src/test/ui/traits/object/supertrait-lifetime-bound.nll.stderr

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

12 lines
322 B
Plaintext
Raw Normal View History

2022-01-31 21:11:23 -06:00
error: lifetime may not live long enough
--> $DIR/supertrait-lifetime-bound.rs:14:5
2022-01-31 21:11:23 -06:00
|
LL | fn test2<'a>() {
| -- lifetime `'a` defined here
...
LL | test1::<dyn Bar<&'a u32>, _>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
error: aborting due to previous error