summaryrefslogtreecommitdiffstats
path: root/src/test/ui/numbers-arithmetic/i32-sub.rs
blob: 56df772b4e18ad9a96e621448bedd722cd15746a (plain)
1
2
3
4
5
6
// run-pass




pub fn main() { let mut x: i32 = -400; x = 0 - x; assert_eq!(x, 400); }