2021-11-13 16:39:54 +09:00
|
|
|
fn main() {
|
2024-11-02 16:10:24 -07:00
|
|
|
let _: Vec<u8, _> = vec![]; //~ ERROR use of unstable library feature `allocator_api`
|
2021-11-13 16:39:54 +09:00
|
|
|
#[rustfmt::skip]
|
|
|
|
|
let _: Vec<
|
|
|
|
|
String,
|
2024-11-02 16:10:24 -07:00
|
|
|
_> = vec![]; //~ ERROR use of unstable library feature `allocator_api`
|
|
|
|
|
let _ = Vec::<u16, _>::new(); //~ ERROR use of unstable library feature `allocator_api`
|
|
|
|
|
let _boxed: Box<u32, _> = Box::new(10); //~ ERROR use of unstable library feature `allocator_api`
|
2021-11-13 16:39:54 +09:00
|
|
|
}
|