about summary refs log tree commit diff
path: root/tests/ui/parser/doc-comment-in-generic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/doc-comment-in-generic.rs')
-rw-r--r--tests/ui/parser/doc-comment-in-generic.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/parser/doc-comment-in-generic.rs b/tests/ui/parser/doc-comment-in-generic.rs
new file mode 100644
index 00000000000..84abe875910
--- /dev/null
+++ b/tests/ui/parser/doc-comment-in-generic.rs
@@ -0,0 +1,9 @@
+//@ check-pass
+// Check that it doesn't panic when `Input` gets its visibility checked.
+
+#![crate_type = "lib"]
+
+pub trait Layer<
+    /// Hello.
+    Input,
+> {}