rust/tests/ui/consts/issue-37550.rs
2023-01-11 09:32:08 +00:00

11 lines
129 B
Rust

// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
const fn x() {
let t = true;
let x = || t;
}
fn main() {}