blob: 0e4ccb6fd162b0280ebbcc03b4c9fd56ffe5ae1e [file]
//@ run-pass
// Check that `Allocator` is dyn-compatible, this allows for polymorphic allocators
use std::alloc::{Allocator, System};
fn ensure_dyn_compatible(_: &dyn Allocator) {}
fn main() {
ensure_dyn_compatible(&System);
}