rust/src/test/ui/unboxed-closure-sugar-wrong-trait.stderr
Vadim Petrochenkov fa2d9fc4b9 Update UI tests
2018-02-26 20:24:02 +03:00

17 lines
620 B
Plaintext

error[E0244]: wrong number of type arguments: expected 0, found 1
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:15:8
|
LL | 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
|
LL | fn f<F:Trait(isize) -> 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"