]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.rs
1 // aux-build:two_macros.rs
3 macro_rules
! define_vec
{
5 extern crate std
as Vec
;
13 Vec
::panic
!(); //~ ERROR `Vec` is ambiguous
17 macro_rules
! define_other_core
{
19 extern crate std
as core
;
20 //~^ ERROR macro-expanded `extern crate` items cannot shadow names passed with `--extern`