]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/no-unsafe-self.rs
2 fn foo(*mut self); //~ ERROR cannot pass `self` by raw pointer
3 fn baz(*const self); //~ ERROR cannot pass `self` by raw pointer
4 fn bar(*self); //~ ERROR cannot pass `self` by raw pointer
9 fn foo(*mut self) { }
//~ ERROR cannot pass `self` by raw pointer
10 fn baz(*const self) { }
//~ ERROR cannot pass `self` by raw pointer
11 fn bar(*self) { }
//~ ERROR cannot pass `self` by raw pointer