]> git.lizzy.rs Git - rust.git/blobdiff - tests/source/attrib.rs
Update tests
[rust.git] / tests / source / attrib.rs
index 558153719475f6f7d9cd6a8bbb9a93d0bfc31433..fe8a5e3615b98af3eb858535c79c7fe45d03bf39 100644 (file)
@@ -1,6 +1,19 @@
 // rustfmt-wrap_comments: true
 // Test attributes and doc comments are preserved.
 
+//! Doc comment
+
+#![attribute]
+
+//! Crate doc comment
+
+// Comment
+
+// Comment on attribute
+#![the(attribute)]
+
+// Another comment
+
 #[invalid attribute]
 fn foo() {}