]> git.lizzy.rs Git - rust.git/blob - src/test/ui/stability-attribute/suggest-vec-allocator-api.rs
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / stability-attribute / suggest-vec-allocator-api.rs
1 fn main() {
2     let _: Vec<u8, _> = vec![]; //~ ERROR use of unstable library feature 'allocator_api'
3     #[rustfmt::skip]
4     let _: Vec<
5         String,
6         _> = vec![]; //~ ERROR use of unstable library feature 'allocator_api'
7     let _ = Vec::<u16, _>::new(); //~ ERROR use of unstable library feature 'allocator_api'
8     let _boxed: Box<u32, _> = Box::new(10); //~ ERROR use of unstable library feature 'allocator_api'
9 }