mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
14 lines
297 B
Rust
14 lines
297 B
Rust
// Check that an item defined by a 2.0 macro in another crate cannot be used in
|
|
// another crate.
|
|
|
|
// aux-build:pub_hygiene.rs
|
|
|
|
extern crate pub_hygiene;
|
|
|
|
use pub_hygiene::*;
|
|
|
|
fn main() {
|
|
let x = MyStruct {};
|
|
//~^ ERROR cannot find struct, variant or union type `MyStruct` in this scope
|
|
}
|