error[E0244]: wrong number of type arguments: expected 0, found 1 --> $DIR/unboxed-closure-sugar-wrong-trait.rs:15:8 | 15 | fn f isize>(x: F) {} | ^^^^^^^^^^^^^^^^^^^^^ expected no type arguments error[E0220]: associated type `Output` not found for `Trait` --> $DIR/unboxed-closure-sugar-wrong-trait.rs:15:24 | 15 | fn f isize>(x: F) {} | ^^^^^ associated type `Output` not found error: aborting due to 2 previous errors You've got a few errors: E0220, E0244 If you want more information on an error, try using "rustc --explain E0220"