summary refs log tree commit diff
path: root/src/test/ui/generic/generic-arg-mismatch-recover.stderr
blob: e16ad9120a65ebc8fd8e148ba057b44581d165ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
error[E0107]: wrong number of lifetime arguments: expected 1, found 2
  --> $DIR/generic-arg-mismatch-recover.rs:6:20
   |
LL |     Foo::<'static, 'static, ()>(&0);
   |                    ^^^^^^^ unexpected lifetime argument

error[E0308]: mismatched types
  --> $DIR/generic-arg-mismatch-recover.rs:6:33
   |
LL |     Foo::<'static, 'static, ()>(&0);
   |                                 ^^ expected (), found integer
   |
   = note: expected type `&'static ()`
              found type `&{integer}`

error[E0107]: wrong number of lifetime arguments: expected 1, found 2
  --> $DIR/generic-arg-mismatch-recover.rs:9:20
   |
LL |     Bar::<'static, 'static, ()>(&());
   |                    ^^^^^^^ unexpected lifetime argument

error[E0107]: wrong number of type arguments: expected 0, found 1
  --> $DIR/generic-arg-mismatch-recover.rs:9:29
   |
LL |     Bar::<'static, 'static, ()>(&());
   |                             ^^ unexpected type argument

error: aborting due to 4 previous errors

Some errors occurred: E0107, E0308.
For more information about an error, try `rustc --explain E0107`.