2018-04-07 09:28:31 -05:00
|
|
|
error: type `foo::S` is private
|
2023-03-08 03:13:02 -06:00
|
|
|
--> $DIR/fields.rs:13:17
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let s = S { x: 0 };
|
2020-03-22 17:36:54 -05:00
|
|
|
| ^^^^^^^^^^ private type
|
2018-04-07 09:28:31 -05:00
|
|
|
...
|
|
|
|
LL | let s = foo::m!(S, x);
|
|
|
|
| ------------- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `foo::m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
|
|
error: type `foo::S` is private
|
2023-03-08 03:13:02 -06:00
|
|
|
--> $DIR/fields.rs:14:17
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _ = s.x;
|
2020-03-22 17:36:54 -05:00
|
|
|
| ^ private type
|
2018-04-07 09:28:31 -05:00
|
|
|
...
|
|
|
|
LL | let s = foo::m!(S, x);
|
|
|
|
| ------------- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `foo::m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-04-07 09:28:31 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error: type `T` is private
|
2023-03-08 03:13:02 -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 t = T(0);
|
2020-03-22 17:36:54 -05:00
|
|
|
| ^^^^ private type
|
2018-04-07 09:28:31 -05:00
|
|
|
...
|
|
|
|
LL | let s = foo::m!(S, x);
|
|
|
|
| ------------- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `foo::m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-04-07 09:28:31 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error: type `T` is private
|
2023-03-08 03:13:02 -06:00
|
|
|
--> $DIR/fields.rs:17:17
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _ = t.0;
|
2020-03-22 17:36:54 -05:00
|
|
|
| ^ private type
|
2018-04-07 09:28:31 -05:00
|
|
|
...
|
|
|
|
LL | let s = foo::m!(S, x);
|
|
|
|
| ------------- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `foo::m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|