about summary refs log tree commit diff
path: root/tests/ui/imports/issue-109148.rs
blob: 49fc2fe0f5bc6604b74fce41837b10a0e1baa25f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ edition: 2021

// https://github.com/rust-lang/rust/pull/111761#issuecomment-1557777314
macro_rules! m {
    () => {
        extern crate core as std;
        //~^ ERROR macro-expanded `extern crate` items cannot shadow names passed with `--extern`
    }
}

m!();

use std::mem; //~ ERROR `std` is ambiguous
use ::std::mem as _; //~ ERROR `std` is ambiguous

fn main() {}