]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-37550.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / test / ui / consts / issue-37550.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(unused_variables)]
4
5 const fn x() {
6     let t = true;
7     let x = || t;
8 }
9
10 fn main() {}