blob: b6555ac5c407247c3bfc1ef803631ee2191b696d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// originally from rustc ./tests/ui/macros/issue-78325-inconsistent-resolution.rs
// inconsistent resolution for a macro
macro_rules! define_other_core {
( ) => {
extern crate std as core;
};
}
fn main() {
core::panic!();
}
define_other_core!();
//~^ ERROR: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
|