rust/tests/ui/issues/issue-8248.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
242 B
Rust
Raw Normal View History

//@ run-pass
//@ pretty-expanded FIXME #23616
trait A {
2024-02-07 02:42:01 +00:00
fn dummy(&self) { } //~ WARN method `dummy` is never used
}
struct B;
impl A for B {}
2019-05-28 18:47:21 +00:00
fn foo(_: &mut dyn A) {}
pub fn main() {
let mut b = B;
2019-05-28 18:47:21 +00:00
foo(&mut b as &mut dyn A);
}