]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-infer-bound-from-trait.nll.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / regions / regions-infer-bound-from-trait.nll.stderr
1 error[E0309]: the parameter type `A` may not live long enough
2   --> $DIR/regions-infer-bound-from-trait.rs:43:5
3    |
4 LL |     check_bound(x, a) //~ ERROR parameter type `A` may not live long enough
5    |     ^^^^^^^^^^^^^^^^^
6    |
7    = help: consider adding an explicit lifetime bound `A: 'a`...
8
9 error[E0309]: the parameter type `A` may not live long enough
10   --> $DIR/regions-infer-bound-from-trait.rs:47:5
11    |
12 LL |     check_bound(x, a) //~ ERROR parameter type `A` may not live long enough
13    |     ^^^^^^^^^^^^^^^^^
14    |
15    = help: consider adding an explicit lifetime bound `A: 'a`...
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0309`.