summary refs log tree commit diff
path: root/src/test/run-fail/promoted_div_by_zero.rs
blob: dc6719ce025f2c38f161ecc94c1fde0e7ab35803 (plain)
1
2
3
4
5
6
7
#![allow(unconditional_panic, const_err)]

// error-pattern: attempt to divide by zero

fn main() {
    let x = &(1 / (1 - 1));
}