2017-09-25 14:01:55 -05:00
|
|
|
warning: enum is never used: `Enum`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/unused-warning-point-at-signature.rs:5:1
|
2017-09-25 14:01:55 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | enum Enum { //~ WARN enum is never used
|
2017-09-25 14:01:55 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/unused-warning-point-at-signature.rs:3:9
|
2017-09-25 14:01:55 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #![warn(unused)]
|
2017-09-25 14:01:55 -05:00
|
|
|
| ^^^^^^
|
|
|
|
= note: #[warn(dead_code)] implied by #[warn(unused)]
|
|
|
|
|
2018-07-21 19:55:34 -05:00
|
|
|
warning: struct is never constructed: `Struct`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/unused-warning-point-at-signature.rs:12:1
|
2017-09-25 14:01:55 -05:00
|
|
|
|
|
2018-07-21 19:55:34 -05:00
|
|
|
LL | struct Struct { //~ WARN struct is never constructed
|
2017-09-25 14:01:55 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: function is never used: `func`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/unused-warning-point-at-signature.rs:19:1
|
2017-09-25 14:01:55 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn func() -> usize { //~ WARN function is never used
|
2017-09-25 14:01:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: function is never used: `func_complete_span`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/unused-warning-point-at-signature.rs:23:1
|
2017-09-25 14:01:55 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / fn //~ WARN function is never used
|
|
|
|
LL | | func_complete_span()
|
|
|
|
LL | | -> usize
|
|
|
|
LL | | {
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | | 3
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | }
|
2017-09-25 14:01:55 -05:00
|
|
|
| |_^
|
|
|
|
|