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