summary refs log tree commit diff
path: root/src/test/ui/consts/promoted_div_by_zero.rs
blob: b4503f691ffd95fe2ea31d178260fb4f551ced64 (plain)
1
2
3
4
5
6
7
8
9
#![allow(unconditional_panic, const_err)]

// run-fail
// error-pattern: attempt to divide by zero
// ignore-emscripten no processes

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