fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
699 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: '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: 'a`...
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0309`.