fork/rust

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

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

1.40.0
845 B21 linesraw
1error[E0637]: `&` without an explicit lifetime name cannot be used here
2  --> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:5:37
3   |
4LL | fn should_error<T>() where T : Into<&u32> {}
5   |                                     ^ explicit lifetime name needed here
6
7error[E0106]: missing lifetime specifier
8  --> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:9:19
9   |
10LL |     fn foo<'b, L: X<&'b Nested<K>>>();
11   |                   ^^^^^^^^^^^^^^^^ expected lifetime parameter
12
13error[E0106]: missing lifetime specifier
14  --> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:13:15
15   |
16LL | fn bar<'b, L: X<&'b Nested<i32>>>(){}
17   |               ^^^^^^^^^^^^^^^^^^ expected lifetime parameter
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0106`.