]> git.proxmox.com Git - rustc.git/blame - src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.rs
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / imports / extern-prelude-extern-crate-restricted-shadowing.rs
CommitLineData
e74abb32
XL
1// ignore-x86
2// ^ due to stderr output differences
0bf4aa26
XL
3// aux-build:two_macros.rs
4
0bf4aa26
XL
5macro_rules! define_vec {
6 () => {
7 extern crate std as Vec;
8 }
9}
10
11define_vec!();
12
13mod m {
14 fn check() {
15 Vec::panic!(); //~ ERROR `Vec` is ambiguous
16 }
17}
18
13cf67c4
XL
19macro_rules! define_other_core {
20 () => {
21 extern crate std as core;
22 //~^ ERROR macro-expanded `extern crate` items cannot shadow names passed with `--extern`
23 }
24}
25
26define_other_core!();
27
0bf4aa26 28fn main() {}