blob: 2eae000b045e23b6f9c8784503db8cc66cd93d3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Check that an identifier from a 2.0 macro in another crate cannot be
// resolved with an identifier that's not from a macro expansion.
//@ aux-build:use_by_macro.rs
extern crate use_by_macro;
use use_by_macro::*;
my_struct!(define);
fn main() {
let x = MyStruct {};
//~^ ERROR cannot find struct, variant or union type `MyStruct` in this scope
}
|