File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11// edition:2018
2- // compile-flags:--extern dollar_crate --extern dollar_crate_external
32// aux-build:dollar-crate.rs
43// aux-build:dollar-crate-external.rs
54
65// Anonymize unstable non-dummy spans while still showing dummy spans `0..0`.
76// normalize-stdout-test "bytes\([^0]\w*\.\.(\w+)\)" -> "bytes(LO..$1)"
87// normalize-stdout-test "bytes\((\w+)\.\.[^0]\w*\)" -> "bytes($1..HI)"
98
9+ extern crate dollar_crate;
10+ extern crate dollar_crate_external;
11+
1012type S = u8 ;
1113
1214mod local {
15+ use crate :: dollar_crate;
16+
1317 macro_rules! local {
1418 ( ) => {
1519 dollar_crate:: m! {
@@ -28,6 +32,8 @@ mod local {
2832}
2933
3034mod external {
35+ use crate :: dollar_crate_external;
36+
3137 dollar_crate_external:: external!( ) ; //~ ERROR the name `D` is defined multiple times
3238}
3339
Original file line number Diff line number Diff line change 11error[E0428]: the name `D` is defined multiple times
2- --> $DIR/dollar-crate.rs:23 :13
2+ --> $DIR/dollar-crate.rs:27 :13
33 |
44LL | struct D($crate::S); //~ ERROR the name `D` is defined multiple times
55 | ^^^^^^^^^^^^^^^^^^^^
@@ -13,7 +13,7 @@ LL | local!();
1313 = note: `D` must be defined only once in the type namespace of this module
1414
1515error[E0428]: the name `D` is defined multiple times
16- --> $DIR/dollar-crate.rs:31 :5
16+ --> $DIR/dollar-crate.rs:37 :5
1717 |
1818LL | dollar_crate_external::external!(); //~ ERROR the name `D` is defined multiple times
1919 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments