Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
const-eval
/
issue-43197.rs
blob: 145463f0ae29816fbfa93d422293a6674450ad9d [
file
] [
log
] [
blame
] [
edit
]
const
fn
foo
(
x
:
u32
)
->
u32
{
x
}
fn
main
()
{
const
X
:
u32
=
0
-
1
;
//~^ ERROR constant
const
Y
:
u32
=
foo
(
0
-
1
);
//~^ ERROR constant
println
!(
"{} {}"
,
X
,
Y
);
}