rust/tests/ui/privacy/private-in-public-ill-formed.stderr

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

20 lines
754 B
Plaintext
Raw Normal View History

2020-08-27 21:55:22 +00:00
error[E0118]: no nominal type found for inherent implementation
2018-12-25 15:56:47 +00:00
--> $DIR/private-in-public-ill-formed.rs:14:10
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | impl <Priv as PrivTr>::AssocAlias {
2020-08-27 21:55:22 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl requires a nominal type
2018-08-08 12:28:26 +00:00
|
= note: either implement a trait on it or create a newtype to wrap it instead
2020-08-27 21:55:22 +00:00
error[E0118]: no nominal type found for inherent implementation
--> $DIR/private-in-public-ill-formed.rs:31:10
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | impl <Priv as PrivTr>::AssocAlias {
2020-08-27 21:55:22 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl requires a nominal type
2018-08-08 12:28:26 +00:00
|
= note: either implement a trait on it or create a newtype to wrap it instead
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0118`.