rust/tests/ui/consts/issue-37550-1.rs

9 lines
83 B
Rust

//@ check-pass
const fn x() {
let t = true;
let x = || t;
}
fn main() {}