Sign in
◑
Theme
rust
/
rust
/
e4932e024a866fcfbe472a554e26e39e00a6bc4f
/
.
/
tests
/
ui
/
allocator
/
dyn-compatible.rs
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
);
}