fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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