summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/float-generic.simple.stderr
blob: eccf9059ee335366b21bab0878cda6cbfcbc0ee0 (plain)
1
2
3
4
5
6
7
8
9
10
error: `f32` is forbidden as the type of a const generic parameter
  --> $DIR/float-generic.rs:5:17
   |
LL | fn foo<const F: f32>() {}
   |                 ^^^
   |
   = note: the only supported types are integers, `bool` and `char`

error: aborting due to 1 previous error