mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
16 lines
361 B
Rust
16 lines
361 B
Rust
// 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
|
|
}
|