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

11 lines
130 B
Rust

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