about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/fallback.rs
blob: 253d16f3251cad0545a7d72088aae0a87533eb0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ check-pass
//@ compile-flags: -Znext-solver

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;
}