]> git.lizzy.rs Git - rust.git/blob - tests/ui/variance/variance-associated-types2.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / variance / variance-associated-types2.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