rust/src/test/run-pass/issue-1660.rs
Tim Chevalier 45c1dfe5b3 Don't compute pre- and postconditions for item_consts
Since item_consts can't refer to or modify local variables, they
don't participate in typestate and thus get empty pre and
postconditions by default.

Closes #1660
2012-01-31 11:52:46 -08:00

4 lines
40 B
Rust

fn main() {
const _x: int = 1<<2;
}