diff options
Diffstat (limited to 'tests/ui/macros/issue-78325-inconsistent-resolution.rs')
-rw-r--r-- | tests/ui/macros/issue-78325-inconsistent-resolution.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-78325-inconsistent-resolution.rs b/tests/ui/macros/issue-78325-inconsistent-resolution.rs new file mode 100644 index 000000000..919eca4f9 --- /dev/null +++ b/tests/ui/macros/issue-78325-inconsistent-resolution.rs @@ -0,0 +1,12 @@ +macro_rules! define_other_core { + ( ) => { + extern crate std as core; + //~^ ERROR macro-expanded `extern crate` items cannot shadow names passed with `--extern` + }; +} + +fn main() { + core::panic!(); +} + +define_other_core!(); |