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
752 B
Plaintext
Raw Normal View History

2020-08-27 21:55:22 +00:00
error[E0118]: no nominal type found for inherent implementation
--> $DIR/private-in-public-ill-formed.rs:14:5
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | impl <Priv as PrivTr>::AssocAlias {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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:5
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | impl <Priv as PrivTr>::AssocAlias {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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`.