about summary refs log tree commit diff
path: root/tests/ui/box/alloc-unstable-fail.rs
blob: e209af97d7f758fa79cccf9282301957a66515f3 (plain)
1
2
3
4
5
6
use std::boxed::Box;

fn main() {
    let _boxed: Box<u32, _> = Box::new(10);
    //~^ ERROR use of unstable library feature `allocator_api`
}