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.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/ui/parser/doc-comment-in-generic.rs b/tests/ui/parser/doc-comment-in-generic.rs
index 84abe875910..2596496763b 100644
--- a/tests/ui/parser/doc-comment-in-generic.rs
+++ b/tests/ui/parser/doc-comment-in-generic.rs
@@ -1,9 +1,13 @@
+//! Tests correct parsing of doc comments on generic parameters in traits.
+//! Checks that compiler doesn't panic when processing this.
+
 //@ check-pass
-// Check that it doesn't panic when `Input` gets its visibility checked.
 
 #![crate_type = "lib"]
 
 pub trait Layer<
-    /// Hello.
+    /// Documentation for generic parameter.
     Input,
-> {}
+>
+{
+}