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