fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
789 B21 linesraw
1error[E0107]: wrong number of lifetime arguments: expected 1, found 2
2  --> $DIR/generic-arg-mismatch-recover.rs:6:20
3   |
4LL |     Foo::<'static, 'static, ()>(&0);
5   |                    ^^^^^^^ unexpected lifetime argument
6
7error[E0107]: wrong number of lifetime arguments: expected 1, found 2
8  --> $DIR/generic-arg-mismatch-recover.rs:8:20
9   |
10LL |     Bar::<'static, 'static, ()>(&());
11   |                    ^^^^^^^ unexpected lifetime argument
12
13error[E0107]: wrong number of type arguments: expected 0, found 1
14  --> $DIR/generic-arg-mismatch-recover.rs:8:29
15   |
16LL |     Bar::<'static, 'static, ()>(&());
17   |                             ^^ unexpected type argument
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0107`.