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

25 lines
845 B
Plaintext
Raw Normal View History

error[E0107]: this trait takes 0 type arguments but 1 type argument was supplied
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:5:8
|
2018-02-22 18:42:32 -06:00
LL | fn f<F:Trait(isize) -> isize>(x: F) {}
| ^^^^^------- help: remove these parenthetical generics
| |
| expected 0 type arguments
|
note: trait defined here, with 0 type parameters
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:3:7
|
LL | trait Trait {}
| ^^^^^
error[E0220]: associated type `Output` not found for `Trait`
--> $DIR/unboxed-closure-sugar-wrong-trait.rs:5:24
|
2018-02-22 18:42:32 -06:00
LL | fn f<F:Trait(isize) -> isize>(x: F) {}
| ^^^^^ associated type `Output` not found
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0107, E0220.
2018-08-21 20:12:23 -05:00
For more information about an error, try `rustc --explain E0107`.