]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/object/supertrait-lifetime-bound.stderr
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / ui / traits / object / supertrait-lifetime-bound.stderr
1 error: lifetime may not live long enough
2   --> $DIR/supertrait-lifetime-bound.rs:10:5
3    |
4 LL | fn test2<'a>() {
5    |          -- lifetime `'a` defined here
6 ...
7 LL |     test1::<dyn Bar<&'a u32>, _>();
8    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
9
10 error: aborting due to previous error
11