Revert rename of Div to Quot
This commit is contained in:
parent
7a857673ff
commit
ee26c7c433
27 changed files with 201 additions and 237 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue