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

// error-pattern: attempt to divide by zero

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