]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/ty-outlives/ty-param-fn-body.stderr
Rollup merge of #50257 - estebank:fix-49560, r=nikomatsakis
[rust.git] / src / test / ui / nll / ty-outlives / ty-param-fn-body.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/ty-param-fn-body.rs:29:5
3    |
4 LL |     outlives(cell, t)
5    |     ^^^^^^^^
6
7 error[E0309]: the parameter type `T` may not live long enough
8   --> $DIR/ty-param-fn-body.rs:29:5
9    |
10 LL |     outlives(cell, t)
11    |     ^^^^^^^^^^^^^^^^^
12    |
13    = help: consider adding an explicit lifetime bound `T: 'a`...
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0309`.