]> git.proxmox.com Git - rustc.git/blob - tests/ui/hygiene/cross-crate-name-hiding.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / hygiene / cross-crate-name-hiding.rs
1 // Check that an item defined by a 2.0 macro in another crate cannot be used in
2 // another crate.
3
4 // aux-build:pub_hygiene.rs
5
6 extern crate pub_hygiene;
7
8 use pub_hygiene::*;
9
10 fn main() {
11 let x = MyStruct {};
12 //~^ ERROR cannot find struct, variant or union type `MyStruct` in this scope
13 }