]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-associated-types2.nll.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[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    = help: consider replacing `'a` with `'static`
10
11 error: aborting due to previous error
12