]> git.proxmox.com Git - rustc.git/blame - src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / unboxed-closures / unboxed-closure-sugar-wrong-trait.stderr
CommitLineData
b7449926 1error[E0107]: wrong number of type arguments: expected 0, found 1
e1599b0c 2 --> $DIR/unboxed-closure-sugar-wrong-trait.rs:5:8
ff7c6d11 3 |
0531ce1d 4LL | fn f<F:Trait(isize) -> isize>(x: F) {}
e1599b0c 5 | ^^^^^^^^^^^^ unexpected type argument
ff7c6d11
XL
6
7error[E0220]: associated type `Output` not found for `Trait`
ba9703b0 8 --> $DIR/unboxed-closure-sugar-wrong-trait.rs:5:24
ff7c6d11 9 |
0531ce1d 10LL | fn f<F:Trait(isize) -> isize>(x: F) {}
ba9703b0 11 | ^^^^^ associated type `Output` not found
ff7c6d11
XL
12
13error: aborting due to 2 previous errors
14
48663c56 15Some errors have detailed explanations: E0107, E0220.
b7449926 16For more information about an error, try `rustc --explain E0107`.