2020-09-11 16:39:26 +00:00
|
|
|
error[E0107]: wrong number of type arguments: expected 1, found 0
|
|
|
|
--> $DIR/issue-76595.rs:15:5
|
|
|
|
|
|
|
|
|
LL | test::<2>();
|
|
|
|
| ^^^^^^^^^ expected 1 type argument
|
|
|
|
|
|
|
|
error: constant expression depends on a generic parameter
|
|
|
|
--> $DIR/issue-76595.rs:15:5
|
|
|
|
|
|
|
|
|
LL | fn test<T, const P: usize>() where Bool<{core::mem::size_of::<T>() > 4}>: True {
|
2020-09-22 16:00:32 +00:00
|
|
|
| ------------------------------- required by this bound in `test`
|
2020-09-11 16:39:26 +00:00
|
|
|
...
|
|
|
|
LL | test::<2>();
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this may fail depending on what value the parameter takes
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0107`.
|