Debian Codegraph @

gcc/testsuite/rust/compile/torture/coercion1.rs

raw
1 pub fn main() {
2 let a: &i32 = &123;
3 // { dg-warning "unused name" "" { target *-*-* } .-1 }
4 let b: &mut i32 = &mut 123;
5
6 let c: &i32 = &mut 123;
7 // { dg-warning "unused name" "" { target *-*-* } .-1 }
8
9 let d: &i32 = b;
10 // { dg-warning "unused name" "" { target *-*-* } .-1 }
11 }