rust/src/test/ui/issues/issue-37550.rs

7 lines
105 B
Rust
Raw Normal View History

2017-05-25 18:06:30 -04:00
const fn x() {
2018-11-26 13:08:55 +01:00
let t = true; //~ ERROR local variables in const fn
let x = || t;
2017-05-25 18:06:30 -04:00
}
fn main() {}