fork/rust

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

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

master
634 B19 linesraw
1error[E0741]: `(fn(),)` can't be used as a const parameter type
2  --> $DIR/issue-99641.rs:5:35
3   |
4LL |     pub struct Color<const WHITE: (fn(),)>;
5   |                                   ^^^^^^^
6   |
7   = note: `fn()` must implement `ConstParamTy`, but it does not
8
9error[E0741]: `(fn(),)` can't be used as a const parameter type
10  --> $DIR/issue-99641.rs:8:23
11   |
12LL |     impl<const WHITE: (fn(),)> Color<WHITE> {
13   |                       ^^^^^^^
14   |
15   = note: `fn()` must implement `ConstParamTy`, but it does not
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0741`.