Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- 9001 as char
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error: only u8 can be cast into char
- --> src/main.rs:6:9
- |
- 6 | 9001 as char
- | ^^^^^^^^^^^^ help: use a char literal instead: `'\u{2329}'`
- |
- = note: #[deny(overflowing_literals)] on by default
- error: aborting due to previous error
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment