Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
inline-const
/
const-expr-basic.rs
blob: 9254c96a1e7a60ac6d75629f9579ae348d42b2fd [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
incomplete_features
)]
#![
feature
(
inline_const
)]
fn
foo
()
->
i32
{
const
{
let
x
=
5
+
10
;
x
/
3
}
}
fn
main
()
{
assert_eq
!(
5
,
foo
());
}