+// rustfmt-normalize_comments: true
+// rustfmt-wrap_comments: true
+
//! Doc comment
fn test() {
+ //! Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam
+ //! lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam
+
// comment
// comment2
- code(); /* leave this comment alone!
- * ok? */
+ code(); // leave this comment alone!
+ // ok?
// Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a
// diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam
// self.config)
// .unwrap());
- funk(); //dontchangeme
+ funk(); // dontchangeme
// or me
+
+ // #1388
+ const EXCEPTION_PATHS: &'static [&'static str] = &[
+ // std crates
+ "src/libstd/sys/", // Platform-specific code for std lives here.
+ "src/bootstrap",
+ ];
}
/// test123
-fn doc_comment() {
-}
+fn doc_comment() {}
fn chains() {
foo.bar(|| {
x
})
}
+
+fn issue_1086() {
+ //
+}
+
+// random comment
+
+fn main() {
+ // Test
+}
+
+// #1643
+fn some_fn() // some comment
+{
+}
+
+fn some_fn1()
+// some comment
+{
+}
+
+fn some_fn2() // some comment
+{
+}
+
+fn some_fn3() // some comment some comment some comment some comment some comment some comment so
+{
+}
+
+fn some_fn4()
+// some comment some comment some comment some comment some comment some comment
+// some comment
+{
+}
+
+// #1603
+pub enum Foo {
+ A, // `/** **/`
+ B, // `/*!`
+ C,
+}