]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/issue-54006.rs
Auto merge of #56534 - xfix:copied, r=@SimonSapin
[rust.git] / src / test / ui / rust-2018 / issue-54006.rs
1 // edition:2018
2
3 #![no_std]
4 #![crate_type = "lib"]
5
6 use alloc::vec;
7 //~^ ERROR unresolved import `alloc`
8
9 pub fn foo() {
10     let mut xs = vec![];
11     //~^ ERROR cannot determine resolution for the macro `vec`
12     xs.push(0);
13 }