fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.1 KiB31 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[E0308]: mismatched types
8  --> $DIR/generic-arg-mismatch-recover.rs:6:33
9   |
10LL |     Foo::<'static, 'static, ()>(&0);
11   |                                 ^^ expected `()`, found integer
12   |
13   = note: expected reference `&'static ()`
14              found reference `&{integer}`
15
16error[E0107]: wrong number of lifetime arguments: expected 1, found 2
17  --> $DIR/generic-arg-mismatch-recover.rs:9:20
18   |
19LL |     Bar::<'static, 'static, ()>(&());
20   |                    ^^^^^^^ unexpected lifetime argument
21
22error[E0107]: wrong number of type arguments: expected 0, found 1
23  --> $DIR/generic-arg-mismatch-recover.rs:9:29
24   |
25LL |     Bar::<'static, 'static, ()>(&());
26   |                             ^^ unexpected type argument
27
28error: aborting due to 4 previous errors
29
30Some errors have detailed explanations: E0107, E0308.
31For more information about an error, try `rustc --explain E0107`.