Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- let x = panic!(); let y = panic!(); x == y
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- warning: unused variable: `x`
- --> src/main.rs:6:13
- |
- 6 | let x = panic!(); let y = panic!(); x == y
- | ^ help: consider prefixing with an underscore: `_x`
- |
- = note: #[warn(unused_variables)] on by default
- warning: unused variable: `y`
- --> src/main.rs:6:31
- |
- 6 | let x = panic!(); let y = panic!(); x == y
- | ^ help: consider prefixing with an underscore: `_y`
- Finished dev [unoptimized + debuginfo] target(s) in 0.53s
- Running `target/debug/playground`
- thread 'main' panicked at 'explicit panic', src/main.rs:6:17
- note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
- */
- /* ~~~~=== stdout ===~~~~
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement