mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
14 lines
314 B
Rust
14 lines
314 B
Rust
// Check that items with identical `SyntaxContext` conflict even when that
|
|
// context involves a mark from another crate.
|
|
|
|
// aux-build:use_by_macro.rs
|
|
|
|
extern crate use_by_macro;
|
|
|
|
use use_by_macro::*;
|
|
|
|
my_struct!(define);
|
|
//~^ ERROR the name `MyStruct` is defined multiple times
|
|
my_struct!(define);
|
|
|
|
fn main() {}
|