2017-09-25 14:01:55 -05:00
|
|
|
warning: enum is never used: `Enum`
|
|
|
|
--> $DIR/unused-warning-point-at-signature.rs:15:1
|
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
15 | enum Enum { //~ WARN enum is never used
|
2017-09-25 14:01:55 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/unused-warning-point-at-signature.rs:13:9
|
|
|
|
|
|
|
|
|
13 | #![warn(unused)]
|
|
|
|
| ^^^^^^
|
|
|
|
= note: #[warn(dead_code)] implied by #[warn(unused)]
|
|
|
|
|
|
|
|
warning: struct is never used: `Struct`
|
|
|
|
--> $DIR/unused-warning-point-at-signature.rs:22:1
|
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
22 | struct Struct { //~ WARN struct is never used
|
2017-09-25 14:01:55 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: function is never used: `func`
|
|
|
|
--> $DIR/unused-warning-point-at-signature.rs:29:1
|
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
29 | fn func() -> usize { //~ WARN function is never used
|
2017-09-25 14:01:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: function is never used: `func_complete_span`
|
|
|
|
--> $DIR/unused-warning-point-at-signature.rs:33:1
|
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
33 | / fn //~ WARN function is never used
|
2017-09-25 14:01:55 -05:00
|
|
|
34 | | func_complete_span()
|
|
|
|
35 | | -> usize
|
|
|
|
36 | | {
|
|
|
|
37 | | 3
|
|
|
|
38 | | }
|
|
|
|
| |_^
|
|
|
|
|