// https://github.com/rust-lang/rust/issues/43336
Some( Err(error) ) ;
}
+
+// Formatting inner attributes
+fn inner_attributes() {
+ #![ this_is_an_inner_attribute ( foo ) ]
+
+ foo();
+}
+
+impl InnerAttributes() {
+ #![ this_is_an_inner_attribute ( foo ) ]
+
+ fn foo() {}
+}
+
+mod InnerAttributes {
+ #![ this_is_an_inner_attribute ( foo ) ]
+}
--- /dev/null
+#![doc(html_root_url = "http://example.com")]
+#[cfg(feature = "foo")]
+fn a() {}
// https://github.com/rust-lang/rust/issues/43336
Some(Err(error));
}
+
+// Formatting inner attributes
+fn inner_attributes() {
+ #![this_is_an_inner_attribute(foo)]
+
+ foo();
+}
+
+impl InnerAttributes() {
+ #![this_is_an_inner_attribute(foo)]
+
+ fn foo() {}
+}
+
+mod InnerAttributes {
+ #![this_is_an_inner_attribute(foo)]
+}
-#![allow(dead_code)] // bar
-
+#![allow(dead_code)]
+// bar
//! Doc comment
fn test() {
// comment
--- /dev/null
+#![doc(html_root_url = "http://example.com")]
+#[cfg(feature = "foo")]
+fn a() {}