rust/tests/ui/hygiene/fields.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.4 KiB
Plaintext
Raw Normal View History

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 };
| ^^^^^^^^^^ private type
2018-04-07 14:28:31 +00:00
...
LL | let s = foo::m!(S, x);
| ------------- in this macro invocation
|
= 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;
| ^ private type
2018-04-07 14:28:31 +00:00
...
LL | let s = foo::m!(S, x);
| ------------- in this macro invocation
|
= 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 `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);
| ^^^^ private type
2018-04-07 14:28:31 +00:00
...
LL | let s = foo::m!(S, x);
| ------------- in this macro invocation
|
= 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 `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;
| ^ private type
2018-04-07 14:28:31 +00:00
...
LL | let s = foo::m!(S, x);
| ------------- in this macro invocation
|
= 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