]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-6255.rs
Merge remote-tracking branch 'upstream/master' into rustup
[rust.git] / tests / ui / crashes / ice-6255.rs
1 // originally from rustc ./src/test/ui/macros/issue-78325-inconsistent-resolution.rs
2 // inconsistent resolution for a macro
3
4 macro_rules! define_other_core {
5     ( ) => {
6         extern crate std as core;
7         //~^ ERROR macro-expanded `extern crate` items cannot shadow names passed with `--extern`
8     };
9 }
10
11 fn main() {
12     core::panic!();
13 }
14
15 define_other_core!();