blob: f41ea68053a7d0d22f2aaacc398bc51f28b85e78 (
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
|
warning: methods `z` and `y` are never used
--> $DIR/lifetime.rs:8:8
|
LL | trait Foo: PartialEq<i32> + std::fmt::Debug + Send + Sync {
| --- methods in this trait
...
LL | fn z(&self) -> i32 {
| ^
...
LL | fn y(&self) -> i32 {
| ^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: method `w` is never used
--> $DIR/lifetime.rs:22:8
|
LL | trait Bar: Foo {
| --- method in this trait
...
LL | fn w(&self) -> i32 {
| ^
warning: 2 warnings emitted
|