]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/empty_line_after_outer_attribute.rs
Handle nested block comments
[rust.git] / tests / ui / empty_line_after_outer_attribute.rs
index beaa98953da7f6d1fc96adf6fe29dbb195873ede..30063dac0a4659ff7c88717df115b86c9b862326 100644 (file)
@@ -67,4 +67,28 @@ pub fn function() -> bool {
     true
 }
 
+// This should not produce a warning
+#[derive(Clone, Copy)]
+pub enum FooFighter {
+    Bar1,
+
+    Bar2,
+
+    Bar3,
+
+    Bar4
+}
+
+// This should not produce a warning because the empty line is inside a block comment
+#[crate_type = "lib"]
+/*
+
+*/
+pub struct S;
+
+// This should not produce a warning
+#[crate_type = "lib"]
+/* test */
+pub struct T;
+
 fn main() { }