rust/tests/ui/issues/issue-3521-2.fixed
2024-02-16 20:02:50 +00:00

9 lines
167 B
Rust

//@ 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);
}