]> git.proxmox.com Git - rustc.git/blob - src/test/ui/variance/variance-associated-types2.nll.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.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