blob: d32d0b15ef4db40b084068b7a618825812d6927c [file]
error: type `foo::S` is private
--> $DIR/fields.rs:13:17
|
LL | pub macro m($S:ident, $x:ident) {{
...
LL | let s = S { x: 0 };
| ^^^^^^^^^^ private type
...
LL | let s = foo::m!(S, x);
| ------------- in this macro invocation
error: type `foo::S` is private
--> $DIR/fields.rs:14:17
|
LL | pub macro m($S:ident, $x:ident) {{
...
LL | let _ = s.x;
| ^ private type
...
LL | let s = foo::m!(S, x);
| ------------- in this macro invocation
error: type `T` is private
--> $DIR/fields.rs:16:17
|
LL | pub macro m($S:ident, $x:ident) {{
...
LL | let t = T(0);
| ^^^^ private type
...
LL | let s = foo::m!(S, x);
| ------------- in this macro invocation
error: type `T` is private
--> $DIR/fields.rs:17:17
|
LL | pub macro m($S:ident, $x:ident) {{
...
LL | let _ = t.0;
| ^ private type
...
LL | let s = foo::m!(S, x);
| ------------- in this macro invocation
error: aborting due to 4 previous errors