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