]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic/generic-arg-mismatch-recover.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.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 type `&'static ()`
14               found type `&{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`.