rust/src/test/compile-fail/issue-3521-2.rs
2012-10-15 12:28:29 -07:00

8 lines
143 B
Rust

fn main() {
let foo = 100;
const y: int = foo + 1; //~ ERROR: attempt to use a non-constant value in a constant
log(error, y);
}