2020-10-06 20:53:12 +00:00
|
|
|
// run-pass
|
2020-09-21 20:55:58 +00:00
|
|
|
|
|
|
|
#![feature(inline_const)]
|
2021-11-22 20:14:25 +00:00
|
|
|
|
2020-09-21 20:55:58 +00:00
|
|
|
fn foo() -> i32 {
|
|
|
|
const {
|
|
|
|
let x = 5 + 10;
|
|
|
|
x / 3
|
|
|
|
}
|
|
|
|
}
|
2020-10-06 20:53:12 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
assert_eq!(5, foo());
|
|
|
|
}
|