summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-18389.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-18389.stderr')
-rw-r--r--tests/ui/issues/issue-18389.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-18389.stderr b/tests/ui/issues/issue-18389.stderr
new file mode 100644
index 000000000..6ce78c45d
--- /dev/null
+++ b/tests/ui/issues/issue-18389.stderr
@@ -0,0 +1,16 @@
+error[E0445]: private trait `Private<<Self as Public>::P, <Self as Public>::R>` in public interface
+ --> $DIR/issue-18389.rs:7:1
+ |
+LL | trait Private<P, R> {
+ | ------------------- `Private<<Self as Public>::P, <Self as Public>::R>` declared as private
+...
+LL | / pub trait Public: Private<
+LL | |
+LL | | <Self as Public>::P,
+LL | | <Self as Public>::R
+LL | | > {
+ | |_^ can't leak private trait
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0445`.