mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
242 B
Rust
15 lines
242 B
Rust
//@ run-pass
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
trait A {
|
|
fn dummy(&self) { } //~ WARN method `dummy` is never used
|
|
}
|
|
struct B;
|
|
impl A for B {}
|
|
|
|
fn foo(_: &mut dyn A) {}
|
|
|
|
pub fn main() {
|
|
let mut b = B;
|
|
foo(&mut b as &mut dyn A);
|
|
}
|