Driveby cleanup of the impl for negation, which had some kind of

surprising casts. This version more obviously corresponds to the builtin
semantics.
This commit is contained in:
Niko Matsakis 2015-03-24 15:36:59 -04:00
parent d649292e60
commit d6466ff13a
2 changed files with 4 additions and 22 deletions

View file

@ -23,4 +23,6 @@ fn main() {
unsafe { libc::exit(0 as libc::c_int); }
});
2_usize + (loop {});
//~^ ERROR E0277
//~| ERROR E0277
}