Point at the trait argument when using unboxed closure
This commit is contained in:
parent
1558ae7cfd
commit
05d19fba27
2 changed files with 9 additions and 8 deletions
|
|
@ -2,7 +2,7 @@ error[E0244]: wrong number of type arguments: expected 0, found 1
|
|||
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:15:13
|
||||
|
|
||||
LL | fn f<F:Trait(isize) -> isize>(x: F) {}
|
||||
| ^^^^^^^^^^^^^^^^ unexpected type argument
|
||||
| ^^^^^^^ unexpected type argument
|
||||
|
||||
error[E0220]: associated type `Output` not found for `Trait`
|
||||
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:15:24
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue