summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-37550.rs
blob: 724eb28291ebc82b9f5ae650379a52e65c953eda (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]

const fn x() {
    let t = true;
    let x = || t;
}

fn main() {}