Changed APIT with explicit generic args span to specific arg spans
This commit is contained in:
parent
4a8c5b20c7
commit
4cfcb77084
4 changed files with 29 additions and 14 deletions
|
|
@ -1,8 +1,8 @@
|
|||
error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position
|
||||
--> $DIR/universal-issue-48703.rs:8:5
|
||||
--> $DIR/universal-issue-48703.rs:8:11
|
||||
|
|
||||
LL | foo::<String>('a');
|
||||
| ^^^^^^^^^^^^^
|
||||
| ^^^^^^ explicit generic argument not allowed
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position
|
||||
--> $DIR/universal-turbofish-in-method-issue-50950.rs:14:9
|
||||
--> $DIR/universal-turbofish-in-method-issue-50950.rs:14:24
|
||||
|
|
||||
LL | evt.handle_event::<TestEvent, fn(TestEvent)>(|_evt| {
|
||||
| ^^^^^^^^^^^^
|
||||
| ^^^^^^^^^ ^^^^^^^^^^^^^ explicit generic argument not allowed
|
||||
| |
|
||||
| explicit generic argument not allowed
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position
|
||||
--> $DIR/synthetic-param.rs:20:5
|
||||
--> $DIR/synthetic-param.rs:20:12
|
||||
|
|
||||
LL | func::<u8>(42);
|
||||
| ^^^^^^^^^^
|
||||
| ^^ explicit generic argument not allowed
|
||||
|
||||
error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position
|
||||
--> $DIR/synthetic-param.rs:23:5
|
||||
--> $DIR/synthetic-param.rs:23:17
|
||||
|
|
||||
LL | Foo::func::<u8>(42);
|
||||
| ^^^^^^^^^^^^^^^
|
||||
| ^^ explicit generic argument not allowed
|
||||
|
||||
error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position
|
||||
--> $DIR/synthetic-param.rs:26:5
|
||||
--> $DIR/synthetic-param.rs:26:23
|
||||
|
|
||||
LL | Bar::<i8>::func::<u8>(42);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^ explicit generic argument not allowed
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue