☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
shadow1.rs
☽
☼
gcc/testsuite/rust/compile/shadow1.rs
code
plain
raw
1
fn main() {
2
let mut x = 5;
3
let mut x;
4
x = true;
5
x = x + 2; // { dg-error "cannot apply operator .+. to types bool and <integer>" }
6
}