]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/object/issue-44454-3.stderr
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / ui / traits / object / issue-44454-3.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-44454-3.rs:17:15
3    |
4 LL | fn make_static<'a, T>(t: &'a T) -> &'static T {
5    |                -- lifetime `'a` defined here
6 LL |     let x: <dyn Animal<&'a T> as Projector>::Foo = t;
7 LL |     let any = generic::<dyn Animal<&'a T>, &'a T>(x);
8    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
9
10 error: aborting due to previous error
11