]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/object/issue-44454-1.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / traits / object / issue-44454-1.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-44454-1.rs:14:5
3    |
4 LL | fn bar<'a>(_arg: &'a i32) {
5    |        -- lifetime `'a` defined here
6 LL |     foo::<dyn Animal<&'a i32>, &'a i32>()
7    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
8
9 error: aborting due to previous error
10