rust/src/test/ui/unboxed-closure-sugar-wrong-trait.stderr

17 lines
620 B
Plaintext
Raw Normal View History

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