]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/implied-bounds-unnorm-associated-type-2.stderr
Rollup merge of #100479 - compiler-errors:argument-type-error-improvements, r=lcnr
[rust.git] / src / test / ui / fn / implied-bounds-unnorm-associated-type-2.stderr
1 error: lifetime may not live long enough
2   --> $DIR/implied-bounds-unnorm-associated-type-2.rs:19:5
3    |
4 LL | fn g<'a, 'b>() {
5    |      --  -- lifetime `'b` defined here
6    |      |
7    |      lifetime `'a` defined here
8 LL |     f::<'a, 'b>(());
9    |     ^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
10    |
11    = help: consider adding the following bound: `'b: 'a`
12    = note: requirement occurs because of a function pointer to `f`
13    = note: the function `f` is invariant over the parameter `'a`
14    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
15
16 error: aborting due to previous error
17