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

17 lines
607 B
Plaintext
Raw Normal View History

error[E0244]: wrong number of type arguments: expected 0, found 1
2018-08-20 11:52:56 +00:00
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:15:13
|
2018-02-23 00:42:32 +00:00
LL | fn f<F:Trait(isize) -> isize>(x: F) {}
2018-08-20 11:52:56 +00:00
| ^^^^^^^^^^^^^^^^ unexpected type argument
error[E0220]: associated type `Output` not found for `Trait`
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:15:24
|
2018-02-23 00:42:32 +00:00
LL | fn f<F:Trait(isize) -> isize>(x: F) {}
| ^^^^^ associated type `Output` not found
error: aborting due to 2 previous errors
2018-03-03 14:59:40 +00:00
Some errors occurred: E0220, E0244.
For more information about an error, try `rustc --explain E0220`.