rust/tests/ui/hygiene/cross-crate-redefine.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
314 B
Rust
Raw Normal View History

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