]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-associated-types2.nll.stderr
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / test / ui / variance / variance-associated-types2.nll.stderr
1 error: lifetime may not live long enough
2   --> $DIR/variance-associated-types2.rs:13:12
3    |
4 LL | fn take<'a>(_: &'a u32) {
5    |         -- lifetime `'a` defined here
6 LL |     let _: Box<dyn Foo<Bar = &'a u32>> = make();
7    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
8
9 error: aborting due to previous error
10