summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/object/issue-44454-1.stderr
blob: e85b46769314339d4db16b23a8ff52803e3bb096 (plain)
1
2
3
4
5
6
7
8
9
10
error: lifetime may not live long enough
  --> $DIR/issue-44454-1.rs:14:5
   |
LL | fn bar<'a>(_arg: &'a i32) {
   |        -- lifetime `'a` defined here
LL |     foo::<dyn Animal<&'a i32>, &'a i32>()
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`

error: aborting due to 1 previous error