]> git.lizzy.rs Git - rust.git/blob - tests/ui/box/alloc-unstable-fail.rs
Rollup merge of #106944 - Nilstrieb:there-once-was-a-diagnostic, r=WaffleLapkin
[rust.git] / tests / ui / box / alloc-unstable-fail.rs
1 use std::boxed::Box;
2
3 fn main() {
4     let _boxed: Box<u32, _> = Box::new(10);
5     //~^ ERROR use of unstable library feature 'allocator_api'
6 }