]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-47722.rs
3 // Tests that automatic coercions from &mut T to *mut T
4 // allow borrows of T to expire immediately - essentially, that
5 // they work identically to 'foo as *mut T'
8 self_reference
: *mut SelfReference
,
12 fn set_self_ref(&mut self) {
13 self.self_reference
= self;