]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.stderr
ff65fd968c5e7b00bdc20f98126890e4f4a841c1
[rust.git] / src / test / ui / unboxed-closures / unboxed-closure-sugar-wrong-trait.stderr
1 error[E0107]: wrong number of type arguments: expected 0, found 1
2   --> $DIR/unboxed-closure-sugar-wrong-trait.rs:5:8
3    |
4 LL | fn f<F:Trait(isize) -> isize>(x: F) {}
5    |        ^^^^^^^^^^^^ unexpected type argument
6
7 error[E0220]: associated type `Output` not found for `Trait`
8   --> $DIR/unboxed-closure-sugar-wrong-trait.rs:5:8
9    |
10 LL | fn f<F:Trait(isize) -> isize>(x: F) {}
11    |        ^^^^^^^^^^^^^^^^^^^^^ associated type `Output` not found
12
13 error: aborting due to 2 previous errors
14
15 Some errors have detailed explanations: E0107, E0220.
16 For more information about an error, try `rustc --explain E0107`.