rust/tests/ui/hygiene/cross-crate-name-hiding.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
297 B
Rust
Raw Normal View History

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