2018-08-21 20:12:23 -05:00
|
|
|
error[E0107]: wrong number of lifetime arguments: expected 1, found 2
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/generic-arg-mismatch-recover.rs:6:20
|
2018-08-20 10:32:59 -05:00
|
|
|
|
|
|
|
|
LL | Foo::<'static, 'static, ()>(&0); //~ ERROR wrong number of lifetime arguments
|
|
|
|
| ^^^^^^^ unexpected lifetime argument
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/generic-arg-mismatch-recover.rs:6:33
|
2018-08-20 10:32:59 -05:00
|
|
|
|
|
|
|
|
LL | Foo::<'static, 'static, ()>(&0); //~ ERROR wrong number of lifetime arguments
|
|
|
|
| ^^ expected (), found integral variable
|
|
|
|
|
|
|
|
|
= note: expected type `&'static ()`
|
|
|
|
found type `&{integer}`
|
|
|
|
|
2018-08-21 20:12:23 -05:00
|
|
|
error[E0107]: wrong number of lifetime arguments: expected 1, found 2
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/generic-arg-mismatch-recover.rs:9:20
|
2018-08-20 10:32:59 -05:00
|
|
|
|
|
|
|
|
LL | Bar::<'static, 'static, ()>(&()); //~ ERROR wrong number of lifetime arguments
|
|
|
|
| ^^^^^^^ unexpected lifetime argument
|
|
|
|
|
2018-08-21 20:12:23 -05:00
|
|
|
error[E0107]: wrong number of type arguments: expected 0, found 1
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/generic-arg-mismatch-recover.rs:9:29
|
2018-08-20 10:32:59 -05:00
|
|
|
|
|
|
|
|
LL | Bar::<'static, 'static, ()>(&()); //~ ERROR wrong number of lifetime arguments
|
|
|
|
| ^^ unexpected type argument
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
2018-08-21 20:12:23 -05:00
|
|
|
Some errors occurred: E0107, E0308.
|
|
|
|
For more information about an error, try `rustc --explain E0107`.
|