fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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`.