mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
Add failing test
This commit is contained in:
parent
3f1a186bd1
commit
77374a9527
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue