2021-10-28 21:48:39 +01:00
|
|
|
// Check that an item defined by a 2.0 macro in another crate cannot be used in
|
|
|
|
// another crate.
|
|
|
|
|
2021-10-23 12:06:58 +01:00
|
|
|
// 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
|
|
|
|
}
|