]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-close-over-type-parameter-1.nll.stderr
Update tests
[rust.git] / src / test / ui / regions / regions-close-over-type-parameter-1.nll.stderr
1 error[E0310]: the parameter type `A` may not live long enough
2   --> $DIR/regions-close-over-type-parameter-1.rs:12:5
3    |
4 LL |     box v as Box<dyn SomeTrait + 'static>
5    |     ^^^^^
6    |
7    = help: consider adding an explicit lifetime bound `A: 'static`...
8
9 error[E0309]: the parameter type `A` may not live long enough
10   --> $DIR/regions-close-over-type-parameter-1.rs:21:5
11    |
12 LL |     box v as Box<dyn SomeTrait + 'b>
13    |     ^^^^^
14    |
15    = help: consider adding an explicit lifetime bound `A: 'b`...
16
17 error: aborting due to 2 previous errors
18
19 Some errors have detailed explanations: E0309, E0310.
20 For more information about an error, try `rustc --explain E0309`.