Add failing test
This commit is contained in:
parent
3f1a186bd1
commit
77374a9527
@ -85,6 +85,18 @@ unsafe fn c_unchecked_mut(&mut self) -> &mut u8 {
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user