]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/cross-crate-redefine.rs
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[rust.git] / src / test / ui / hygiene / cross-crate-redefine.rs
1 // Check that items with identical `SyntaxContext` conflict even when that
2 // context involves a mark from another crate.
3
4 // aux-build:use_by_macro.rs
5
6 extern crate use_by_macro;
7
8 use use_by_macro::*;
9
10 my_struct!(define);
11 //~^ ERROR the name `MyStruct` is defined multiple times
12 my_struct!(define);
13
14 fn main() {}