Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
tests
/
ui
/
issues
/
issue-3521-2.fixed
blob: 2a6e0829bc0f5eb1898862ed225a2af273de039e [
file
]
//@ 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
);
}