David Wood | b16a306 | 2018-08-08 12:28:26 | [diff] [blame] | 1 | error[E0606]: casting `E` as `f32` is invalid |
Mark Rousskov | 2a66355 | 2018-12-25 15:56:47 | [diff] [blame] | 2 | --> $DIR/enum-to-float-cast.rs:13:18 |
David Wood | b16a306 | 2018-08-08 12:28:26 | [diff] [blame] | 3 | | |
Vadim Petrochenkov | fa72a81 | 2019-03-09 12:03:44 | [diff] [blame] | 4 | LL | static C0: f32 = E::L0 as f32; |
David Wood | b16a306 | 2018-08-08 12:28:26 | [diff] [blame] | 5 | | ^^^^^^^^^^^^ |
| 6 | | |
| 7 | = help: cast through an integer first |
| 8 | |
| 9 | error[E0606]: casting `F` as `f32` is invalid |
Mark Rousskov | 2a66355 | 2018-12-25 15:56:47 | [diff] [blame] | 10 | --> $DIR/enum-to-float-cast.rs:14:18 |
David Wood | b16a306 | 2018-08-08 12:28:26 | [diff] [blame] | 11 | | |
Vadim Petrochenkov | fa72a81 | 2019-03-09 12:03:44 | [diff] [blame] | 12 | LL | static C1: f32 = F::H1 as f32; |
David Wood | b16a306 | 2018-08-08 12:28:26 | [diff] [blame] | 13 | | ^^^^^^^^^^^^ |
| 14 | | |
| 15 | = help: cast through an integer first |
| 16 | |
| 17 | error: aborting due to 2 previous errors |
| 18 | |
| 19 | For more information about this error, try `rustc --explain E0606`. |