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
202 B
Rust
Raw Normal View History

// run-pass
// pretty-expanded FIXME #23616
trait A {
fn dummy(&self) { }
}
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);
}