Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-3521-2.fixed
blob: 2a6e0829bc0f5eb1898862ed225a2af273de039e [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
fn main
()
{
let
foo
=
100
;
let
y
:
isize
=
foo
+
1
;
//~^ ERROR attempt to use a non-constant value in a constant
println
!(
"{}"
,
y
);
}