rust/tests/ui/traits/object/issue-44454-1.stderr

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

11 lines
328 B
Plaintext
Raw Normal View History

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 previous error