summaryrefslogtreecommitdiffstats
path: root/src/test/ui/hygiene/cross-crate-redefine.rs
blob: 3cb06b4bad87359d98e677838465b70635b8de62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {}