]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/fields.stderr
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / fields.stderr
1 error: type `foo::S` is private
2   --> $DIR/fields.rs:15:17
3    |
4 LL |         let s = S { x: 0 };
5    |                 ^^^^^^^^^^ private type
6 ...
7 LL |     let s = foo::m!(S, x);
8    |             ------------- in this macro invocation
9    |
10    = note: this error originates in the macro `foo::m` (in Nightly builds, run with -Z macro-backtrace for more info)
11
12 error: type `foo::S` is private
13   --> $DIR/fields.rs:16:17
14    |
15 LL |         let _ = s.x;
16    |                 ^ private type
17 ...
18 LL |     let s = foo::m!(S, x);
19    |             ------------- in this macro invocation
20    |
21    = note: this error originates in the macro `foo::m` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23 error: type `T` is private
24   --> $DIR/fields.rs:18:17
25    |
26 LL |         let t = T(0);
27    |                 ^^^^ private type
28 ...
29 LL |     let s = foo::m!(S, x);
30    |             ------------- in this macro invocation
31    |
32    = note: this error originates in the macro `foo::m` (in Nightly builds, run with -Z macro-backtrace for more info)
33
34 error: type `T` is private
35   --> $DIR/fields.rs:19:17
36    |
37 LL |         let _ = t.0;
38    |                 ^ private type
39 ...
40 LL |     let s = foo::m!(S, x);
41    |             ------------- in this macro invocation
42    |
43    = note: this error originates in the macro `foo::m` (in Nightly builds, run with -Z macro-backtrace for more info)
44
45 error: aborting due to 4 previous errors
46