summaryrefslogtreecommitdiffstats
path: root/src/test/ui/privacy/private-in-public-ill-formed.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/privacy/private-in-public-ill-formed.stderr')
-rw-r--r--src/test/ui/privacy/private-in-public-ill-formed.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/privacy/private-in-public-ill-formed.stderr b/src/test/ui/privacy/private-in-public-ill-formed.stderr
new file mode 100644
index 000000000..e7c94bc30
--- /dev/null
+++ b/src/test/ui/privacy/private-in-public-ill-formed.stderr
@@ -0,0 +1,19 @@
+error[E0118]: no nominal type found for inherent implementation
+ --> $DIR/private-in-public-ill-formed.rs:14:10
+ |
+LL | impl <Priv as PrivTr>::AssocAlias {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl requires a nominal type
+ |
+ = note: either implement a trait on it or create a newtype to wrap it instead
+
+error[E0118]: no nominal type found for inherent implementation
+ --> $DIR/private-in-public-ill-formed.rs:31:10
+ |
+LL | impl <Priv as PrivTr>::AssocAlias {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl requires a nominal type
+ |
+ = 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`.