rust/src/test/ui/parser/inline_const/const_expr_parses.rs

11 lines
149 B
Rust
Raw Normal View History

2020-09-21 15:55:58 -05:00
// check-pass
// compile-flags: -Z parse-only
#![feature(inline_const)]
fn foo() -> i32 {
const {
let x = 5 + 10;
x / 3
}
}