Point at the trait argument when using unboxed closure

This commit is contained in:
Esteban Küber 2018-08-20 16:16:17 -07:00
parent 1558ae7cfd
commit 05d19fba27
2 changed files with 9 additions and 8 deletions

View file

@ -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