blob: 1877e20bbc14d4fed8598383acf19e7c5c319f71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
warning: methods `foo` and `bar` are never used
--> $DIR/issue-34503.rs:5:12
|
LL | trait Foo<T> {
| --- methods in this trait
LL | fn foo(&self) where (T, Option<T>): Ord {}
| ^^^
LL | fn bar(&self, x: &Option<T>) -> bool
| ^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: 1 warning emitted
|