blob: 77410e932daa8bb577f2d7c3e28c2fb4b0dcafac (
plain)
1
2
3
4
5
6
7
|
fn main() {
let mut x = 5;
let mut x;
x = true;
x = x + 2; // { dg-error "cannot apply this operator to types bool and <integer>" }
// { dg-error {failed to type resolve expression} "" { target *-*-* } .-1 }
}
|