]>
Commit | Line | Data |
---|---|---|
e74abb32 XL |
1 | // ignore-x86 |
2 | // ^ due to stderr output differences | |
0bf4aa26 XL |
3 | // aux-build:two_macros.rs |
4 | ||
0bf4aa26 XL |
5 | macro_rules! define_vec { |
6 | () => { | |
7 | extern crate std as Vec; | |
8 | } | |
9 | } | |
10 | ||
11 | define_vec!(); | |
12 | ||
13 | mod m { | |
14 | fn check() { | |
15 | Vec::panic!(); //~ ERROR `Vec` is ambiguous | |
16 | } | |
17 | } | |
18 | ||
13cf67c4 XL |
19 | macro_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 | ||
26 | define_other_core!(); | |
27 | ||
0bf4aa26 | 28 | fn main() {} |