]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/issue-68049-1.rs
1 use std
::alloc
::{GlobalAlloc, Layout}
;
5 unsafe impl GlobalAlloc
for Test
{
6 unsafe fn alloc(&self, _layout
: Layout
) -> *mut u8 {
7 self.0 += 1; //~ ERROR cannot assign
11 unsafe fn dealloc(&self, _ptr
: *mut u8, _layout
: Layout
) {