]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-6255.rs
Rollup merge of #78769 - est31:remove_lifetimes, r=KodrAus
[rust.git] / src / tools / clippy / 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!();