Add failing test

This commit is contained in:
Sosthène Guédon 2022-11-12 22:33:46 +01:00
parent 3f1a186bd1
commit 77374a9527

View file

@ -85,6 +85,18 @@ impl B {
}
}
struct C {
inner: Box<A>,
}
impl C {
unsafe fn a(&self) -> &u8 {
&self.inner.b
}
unsafe fn a_mut(&mut self) -> &mut u8 {
&mut self.inner.b
}
}
fn main() {
// test code goes here
}