summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/object/issue-44454-3.stderr
blob: 5b1ebf2d1a997b8f5ad7a0a90b441033be1f1ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: lifetime may not live long enough
  --> $DIR/issue-44454-3.rs:17:15
   |
LL | fn make_static<'a, T>(t: &'a T) -> &'static T {
   |                -- lifetime `'a` defined here
LL |     let x: <dyn Animal<&'a T> as Projector>::Foo = t;
LL |     let any = generic::<dyn Animal<&'a T>, &'a T>(x);
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`

error: aborting due to 1 previous error