summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-11592.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-11592.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-11592.rs b/src/test/ui/issues/issue-11592.rs
new file mode 100644
index 000000000..a4611f2f9
--- /dev/null
+++ b/src/test/ui/issues/issue-11592.rs
@@ -0,0 +1,11 @@
+// check-pass
+//! Ensure the private trait Bar isn't complained about.
+
+#![deny(missing_docs)]
+
+mod foo {
+ trait Bar { fn bar(&self) { } }
+ impl Bar for i8 { fn bar(&self) { } }
+}
+
+fn main() { }