Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
inline-const
/
const-expr-reference.rs
blob: 747f14e4bd0aa4cf7503d41875a84322b551d6dd [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
incomplete_features
)]
#![
feature
(
inline_const
)]
const
fn
bar
()
->
i32
{
const
{
2
+
3
}
}
fn
main
()
{
let
x
:
&
'
static
i32
=
&
const
{
bar
()};
assert_eq
!(&
5
,
x
);
}