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