rust/tests/ui/rfcs/rfc-2632-const-trait-impl/effects/fallback.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
268 B
Rust
Raw Normal View History

2023-09-10 00:11:37 -05:00
// check-pass
#![feature(effects)]
2023-09-10 00:11:37 -05:00
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!();
}
2023-09-10 00:11:37 -05:00
let _ = owo;
}