File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
// edition:2018
2
- // compile-flags:--extern dollar_crate --extern dollar_crate_external
3
2
// aux-build:dollar-crate.rs
4
3
// aux-build:dollar-crate-external.rs
5
4
6
5
// Anonymize unstable non-dummy spans while still showing dummy spans `0..0`.
7
6
// normalize-stdout-test "bytes\([^0]\w*\.\.(\w+)\)" -> "bytes(LO..$1)"
8
7
// normalize-stdout-test "bytes\((\w+)\.\.[^0]\w*\)" -> "bytes($1..HI)"
9
8
9
+ extern crate dollar_crate;
10
+ extern crate dollar_crate_external;
11
+
10
12
type S = u8 ;
11
13
12
14
mod local {
15
+ use crate :: dollar_crate;
16
+
13
17
macro_rules! local {
14
18
( ) => {
15
19
dollar_crate:: m! {
@@ -28,6 +32,8 @@ mod local {
28
32
}
29
33
30
34
mod external {
35
+ use crate :: dollar_crate_external;
36
+
31
37
dollar_crate_external:: external!( ) ; //~ ERROR the name `D` is defined multiple times
32
38
}
33
39
Original file line number Diff line number Diff line change 1
1
error[E0428]: the name `D` is defined multiple times
2
- --> $DIR/dollar-crate.rs:23 :13
2
+ --> $DIR/dollar-crate.rs:27 :13
3
3
|
4
4
LL | struct D($crate::S); //~ ERROR the name `D` is defined multiple times
5
5
| ^^^^^^^^^^^^^^^^^^^^
@@ -13,7 +13,7 @@ LL | local!();
13
13
= note: `D` must be defined only once in the type namespace of this module
14
14
15
15
error[E0428]: the name `D` is defined multiple times
16
- --> $DIR/dollar-crate.rs:31 :5
16
+ --> $DIR/dollar-crate.rs:37 :5
17
17
|
18
18
LL | dollar_crate_external::external!(); //~ ERROR the name `D` is defined multiple times
19
19
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments