Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- -10.995353f32 / std::f32::PI
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error[E0425]: cannot find value `PI` in module `std::f32`
- --> src/main.rs:6:35
- |
- 6 | -10.995353f32 / std::f32::PI
- | ^^ not found in `std::f32`
- help: possible candidates are found in other modules, you can import them into scope
- |
- 4 | use std::f32::consts::PI;
- |
- 4 | use std::f64::consts::PI;
- |
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0425`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment