blob: 051de1d652059f1b60e11dec9e48b4084ddecda5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
const TEST_CONST: i32 = 10;
fn test(x: u32) -> u32 {
x + 1
}
fn main() {
let x = TEST_CONST;
// { dg-warning "unused name" "" { target *-*-* } .-1 }
let a = 1u32;
let b = a;
let c;
c = 1;
let d;
d = b;
let param;
param = 123;
let test_call = test(param);
// { dg-warning "unused name" "" { target *-*-* } .-1 }
}
|