Files
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/effects/fallback.rs
2024-06-22 14:11:11 +00:00

17 lines
314 B
Rust

//@ check-pass
#![feature(effects)] //~ WARN the feature `effects` is incomplete
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;
}