fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
733 B19 linesraw
1error[E0309]: the parameter type `T` may not live long enough
2  --> $DIR/impl-trait-outlives.rs:7:35
3   |
4LL | fn no_region<'a, T>(x: Box<T>) -> impl Debug + 'a
5   |                                   ^^^^^^^^^^^^^^^
6   |
7   = help: consider adding an explicit lifetime bound `T: ReEarlyBound(0, 'a)`...
8
9error[E0309]: the parameter type `T` may not live long enough
10  --> $DIR/impl-trait-outlives.rs:22:42
11   |
12LL | fn wrong_region<'a, 'b, T>(x: Box<T>) -> impl Debug + 'a
13   |                                          ^^^^^^^^^^^^^^^
14   |
15   = help: consider adding an explicit lifetime bound `T: ReEarlyBound(0, 'a)`...
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0309`.