blob: 31a305c31bee241058c1a4be6a88f759e858b29a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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);
}
|