mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
16 lines
202 B
Rust
16 lines
202 B
Rust
// run-pass
|
|
// pretty-expanded FIXME #23616
|
|
|
|
trait A {
|
|
fn dummy(&self) { }
|
|
}
|
|
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);
|
|
}
|