fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
692 B21 linesraw
1error[E0107]: struct takes at least 2 generic arguments but 1 generic argument was supplied
2  --> $DIR/generic-impl-less-params-with-defaults.rs:11:5
3   |
4LL |     Foo::<isize>::new();
5   |     ^^^   ----- supplied 1 generic argument
6   |     |
7   |     expected at least 2 generic arguments
8   |
9note: struct defined here, with at least 2 generic parameters: `A`, `B`
10  --> $DIR/generic-impl-less-params-with-defaults.rs:3:8
11   |
12LL | struct Foo<A, B, C = (A, B)>(
13   |        ^^^ -  -
14help: add missing generic argument
15   |
16LL |     Foo::<isize, B>::new();
17   |                +++
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0107`.