blob: 586e7647df74c5140e4e3e5198a3934a3f89f71f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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
}
|