Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct A {
- inner: u32
- }
- impl A {
- fn test(&mut self) -> &'ref(self.inner) mut u32 {
- &mut self.inner
- }
- }
- struct B {
- a: A,
- b: &'ref(a) u32
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement