2021-10-28 21:48:39 +01:00
|
|
|
// Check that items with identical `SyntaxContext` conflict even when that
|
|
|
|
// context involves a mark from another crate.
|
|
|
|
|
2021-10-23 12:06:58 +01:00
|
|
|
// 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() {}
|