fork/rust

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

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

master
655 B21 linesraw
1error[E0107]: function takes 2 generic arguments but 1 generic argument was supplied
2  --> $DIR/issue-76595.rs:15:5
3   |
4LL |     test::<2>();
5   |     ^^^^   - supplied 1 generic argument
6   |     |
7   |     expected 2 generic arguments
8   |
9note: function defined here, with 2 generic parameters: `T`, `P`
10  --> $DIR/issue-76595.rs:10:4
11   |
12LL | fn test<T, const P: usize>() where Bool<{core::mem::size_of::<T>() > 4}>: True {
13   |    ^^^^ -  --------------
14help: add missing generic argument
15   |
16LL |     test::<2, P>();
17   |             +++
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0107`.