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