2023-01-05 02:45:44 -06:00
|
|
|
// originally from rustc ./tests/ui/macros/issue-78325-inconsistent-resolution.rs
|
2020-11-05 07:29:48 -06:00
|
|
|
// inconsistent resolution for a macro
|
|
|
|
|
|
|
|
macro_rules! define_other_core {
|
|
|
|
( ) => {
|
|
|
|
extern crate std as core;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
core::panic!();
|
|
|
|
}
|
|
|
|
|
|
|
|
define_other_core!();
|
2023-04-20 10:19:36 -05:00
|
|
|
//~^ ERROR: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
|