]>
git.proxmox.com Git - rustc.git/blob - tests/ui/allocator/object-safe.rs
3 // Check that `Allocator` is object safe, this allows for polymorphic allocators
5 #![feature(allocator_api)]
7 use std
::alloc
::{Allocator, System}
;
9 fn ensure_object_safe(_
: &dyn Allocator
) {}
12 ensure_object_safe(&System
);