Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
consts
/
const-eval
/
issue-43197.rs
blob: 778a66facb8032375d3e9ad27e829e74056b1755 [
file
] [
log
] [
blame
]
const
fn
foo
(
x
:
u32
)
->
u32
{
x
}
fn
main
()
{
const
X
:
u32
=
0
-
1
;
//~^ ERROR overflow
const
Y
:
u32
=
foo
(
0
-
1
);
//~^ ERROR overflow
println
!(
"{} {}"
,
X
,
Y
);
}