]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/float-generic.adt_const_params.stderr
Auto merge of #106908 - cjgillot:copyprop-ssa, r=oli-obk
[rust.git] / tests / ui / const-generics / float-generic.adt_const_params.stderr
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`.