Revert rename of Div to Quot

This commit is contained in:
Brendan Zabarauskas 2013-05-01 15:40:05 +10:00
parent 7a857673ff
commit ee26c7c433
27 changed files with 201 additions and 237 deletions

View file

@ -1,5 +1,5 @@
enum test {
quot_zero = 1/0, //~ERROR expected constant: attempted quotient with a divisor of zero
div_zero = 1/0, //~ERROR expected constant: attempted to divide by zero
rem_zero = 1%0 //~ERROR expected constant: attempted remainder with a divisor of zero
}

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error-pattern:attempted quotient with a divisor of zero
// error-pattern:attempted to divide by zero
fn main() {
let y = 0;
let z = 1 / y;