fork/rust

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

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

1.43.0
1000 B27 linesraw
1error[E0107]: wrong number of lifetime arguments: expected 2, found 1
2  --> $DIR/constructor-lifetime-args.rs:17:5
3   |
4LL |     S::<'static>(&0, &0);
5   |     ^^^^^^^^^^^^ expected 2 lifetime arguments
6
7error[E0107]: wrong number of lifetime arguments: expected 2, found 3
8  --> $DIR/constructor-lifetime-args.rs:19:27
9   |
10LL |     S::<'static, 'static, 'static>(&0, &0);
11   |                           ^^^^^^^ unexpected lifetime argument
12
13error[E0107]: wrong number of lifetime arguments: expected 2, found 1
14  --> $DIR/constructor-lifetime-args.rs:22:5
15   |
16LL |     E::V::<'static>(&0);
17   |     ^^^^^^^^^^^^^^^ expected 2 lifetime arguments
18
19error[E0107]: wrong number of lifetime arguments: expected 2, found 3
20  --> $DIR/constructor-lifetime-args.rs:24:30
21   |
22LL |     E::V::<'static, 'static, 'static>(&0);
23   |                              ^^^^^^^ unexpected lifetime argument
24
25error: aborting due to 4 previous errors
26
27For more information about this error, try `rustc --explain E0107`.