2018-04-07 09:28:31 -05:00
|
|
|
error: type `foo::S` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/fields.rs:15:17
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let s = S { x: 0 };
|
2018-04-07 09:28:31 -05:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | let s = foo::m!(S, x);
|
|
|
|
| ------------- in this macro invocation
|
|
|
|
|
|
|
|
error: type `foo::S` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/fields.rs:16:17
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _ = s.x;
|
2018-04-07 09:28:31 -05:00
|
|
|
| ^
|
|
|
|
...
|
|
|
|
LL | let s = foo::m!(S, x);
|
|
|
|
| ------------- in this macro invocation
|
|
|
|
|
|
|
|
error: type `foo::T` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/fields.rs:18:17
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let t = T(0);
|
2018-04-07 09:28:31 -05:00
|
|
|
| ^^^^
|
|
|
|
...
|
|
|
|
LL | let s = foo::m!(S, x);
|
|
|
|
| ------------- in this macro invocation
|
|
|
|
|
|
|
|
error: type `foo::T` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/fields.rs:19:17
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _ = t.0;
|
2018-04-07 09:28:31 -05:00
|
|
|
| ^
|
|
|
|
...
|
|
|
|
LL | let s = foo::m!(S, x);
|
|
|
|
| ------------- in this macro invocation
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|