fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
784 B23 linesraw
1error[E0049]: method `foo` has 0 type parameters but its trait declaration has 1 type parameter
2  --> $DIR/E0049.rs:8:11
3   |
4LL |     fn foo<T: Default>(x: T) -> Self;
5   |            - expected 1 type parameter
6...
7LL |     fn foo(x: bool) -> Self { Bar }
8   |           ^ found 0 type parameters
9
10error[E0049]: method `fuzz` has 0 type parameters but its trait declaration has 2 type parameters
11  --> $DIR/E0049.rs:18:12
12   |
13LL |     fn fuzz<A: Default, B>(x: A, y: B) -> Self;
14   |             -           -
15   |             |
16   |             expected 2 type parameters
17...
18LL |     fn fuzz(x: bool, y: bool) -> Self { Baz }
19   |            ^ found 0 type parameters
20
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0049`.