]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/cross-crate-name-hiding.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / 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 }