summaryrefslogtreecommitdiffstats
path: root/tests/ui/span/unused-warning-point-at-identifier.rs
blob: af4834503cd56f1528f3f244ce41b5af4a92d946 (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
26
27
28
29
30
// run-pass

#![warn(unused)]

enum Enum { //~ WARN enum `Enum` is never used
    A,
    B,
    C,
    D,
}

struct Struct { //~ WARN struct `Struct` is never constructed
    a: usize,
    b: usize,
    c: usize,
    d: usize,
}

fn func() -> usize { //~ WARN function `func` is never used
    3
}

fn
func_complete_span() //~ WARN function `func_complete_span` is never used
-> usize
{
    3
}

fn main() {}