]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/unused-warning-point-at-identifier.rs
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / span / unused-warning-point-at-identifier.rs
1 // run-pass
2
3 #![warn(unused)]
4
5 enum Enum { //~ WARN enum `Enum` is never used
6     A,
7     B,
8     C,
9     D,
10 }
11
12 struct Struct { //~ WARN struct `Struct` is never constructed
13     a: usize,
14     b: usize,
15     c: usize,
16     d: usize,
17 }
18
19 fn func() -> usize { //~ WARN function `func` is never used
20     3
21 }
22
23 fn
24 func_complete_span() //~ WARN function `func_complete_span` is never used
25 -> usize
26 {
27     3
28 }
29
30 fn main() {}