]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/rustc-macro-transparency.stderr
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / rustc-macro-transparency.stderr
1 error[E0425]: cannot find value `Opaque` in this scope
2   --> $DIR/rustc-macro-transparency.rs:26:5
3    |
4 LL |     Opaque;
5    |     ^^^^^^ not found in this scope
6
7 error[E0423]: expected value, found macro `semitransparent`
8   --> $DIR/rustc-macro-transparency.rs:29:5
9    |
10 LL |     struct SemiTransparent;
11    |     ----------------------- similarly named unit struct `SemiTransparent` defined here
12 ...
13 LL |     semitransparent;
14    |     ^^^^^^^^^^^^^^^ not a value
15    |
16 help: use `!` to invoke the macro
17    |
18 LL |     semitransparent!;
19    |                    +
20 help: a unit struct with a similar name exists
21    |
22 LL |     SemiTransparent;
23    |     ~~~~~~~~~~~~~~~
24
25 error[E0423]: expected value, found macro `opaque`
26   --> $DIR/rustc-macro-transparency.rs:30:5
27    |
28 LL |     struct Opaque;
29    |     -------------- similarly named unit struct `Opaque` defined here
30 ...
31 LL |     opaque;
32    |     ^^^^^^ not a value
33    |
34 help: use `!` to invoke the macro
35    |
36 LL |     opaque!;
37    |           +
38 help: a unit struct with a similar name exists
39    |
40 LL |     Opaque;
41    |     ~~~~~~
42
43 error: aborting due to 3 previous errors
44
45 Some errors have detailed explanations: E0423, E0425.
46 For more information about an error, try `rustc --explain E0423`.