summaryrefslogtreecommitdiffstats
path: root/tests/ui/box/alloc-unstable-fail.rs
blob: 9427571648c034367a884724c66b8018543ef412 (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'
}