summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/conditional-debug-macro-on.rs
blob: 8665da89758caf8b8ba555450ab291ba3c9cd259 (plain)
1
2
3
4
5
6
7
8
// run-pass
pub fn main() {
    // exits early if println! evaluates its arguments, otherwise it
    // will hit the panic.
    println!("{:?}", { if true { return; } });

    panic!();
}