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