rust/src/test/ui/span/unused-warning-point-at-identifier.stderr

34 lines
809 B
Plaintext
Raw Normal View History

2017-09-25 19:01:55 +00:00
warning: enum is never used: `Enum`
--> $DIR/unused-warning-point-at-identifier.rs:5:6
2017-09-25 19:01:55 +00:00
|
2019-03-09 12:03:44 +00:00
LL | enum Enum {
| ^^^^
2017-09-25 19:01:55 +00:00
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
--> $DIR/unused-warning-point-at-identifier.rs:3:9
2017-09-25 19:01:55 +00:00
|
2018-02-23 00:42:32 +00:00
LL | #![warn(unused)]
2017-09-25 19:01:55 +00:00
| ^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
2017-09-25 19:01:55 +00:00
warning: struct is never constructed: `Struct`
--> $DIR/unused-warning-point-at-identifier.rs:12:8
2017-09-25 19:01:55 +00:00
|
2019-03-09 12:03:44 +00:00
LL | struct Struct {
| ^^^^^^
2017-09-25 19:01:55 +00:00
warning: function is never used: `func`
--> $DIR/unused-warning-point-at-identifier.rs:19:4
2017-09-25 19:01:55 +00:00
|
2019-03-09 12:03:44 +00:00
LL | fn func() -> usize {
| ^^^^
2017-09-25 19:01:55 +00:00
warning: function is never used: `func_complete_span`
--> $DIR/unused-warning-point-at-identifier.rs:24:1
2017-09-25 19:01:55 +00:00
|
LL | func_complete_span()
| ^^^^^^^^^^^^^^^^^^
2017-09-25 19:01:55 +00:00
warning: 4 warnings emitted