summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/effects/fallback.rs
blob: da2778f610189273ab5e77fba55d3119a54a4c65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass

#![feature(effects)]

pub const fn owo() {}

fn main() {
    // make sure falling back ty/int vars doesn't cause const fallback to be skipped...
    // See issue: 115791.
    let _ = 1;
    if false {
        let x = panic!();
    }

    let _ = owo;
}