warning: method `dummy` is never used
  --> $DIR/issue-14589.rs:21:16
   |
LL | trait Foo { fn dummy(&self) { }}
   |       ---      ^^^^^
   |       |
   |       method in this trait
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: 1 warning emitted

