]>
Commit | Line | Data |
---|---|---|
064997fb FG |
1 | error[E0741]: `f32` is forbidden as the type of a const generic parameter |
2 | --> $DIR/float-generic.rs:5:17 | |
3 | | | |
4 | LL | fn foo<const F: f32>() {} | |
5 | | ^^^ | |
6 | | | |
7 | = note: floats do not derive `Eq` or `Ord`, which are required for const parameters | |
8 | ||
9 | error: aborting due to previous error | |
10 | ||
11 | For more information about this error, try `rustc --explain E0741`. |