1 // rustfmt-wrap_comments: true
2 // rustfmt-normalize_doc_attributes: true
4 // Only doc = "" attributes should be normalized
5 //! Example doc attribute comment
7 html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
8 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
9 html_root_url = "https://doc.rust-lang.org/nightly/",
10 html_playground_url = "https://play.rust-lang.org/",
11 test(attr(deny(warnings)))
14 // Long `#[doc = "..."]`
16 /// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20 /// The `nodes` and `edges` method each return instantiations of `Cow<[T]>` to
21 /// leave implementers the freedom to create entirely new vectors or to pass
22 /// back slices into internally owned vectors.
40 /// item doc attrib comment
41 // regular item comment
44 // regular item comment
45 /// item doc attrib comment
49 // non-regression test for regular attributes, from #2647
51 feature = "this_line_is_101_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
58 #[clippy::bar(a, b, c)]
62 #[derive(Debug, StructOpt)]
63 #[structopt(about = "Display information about the character on FF Logs")]
65 #[structopt(help = "The server the character is on")]
67 #[structopt(help = "The character's first name")]
69 #[structopt(help = "The character's last name")]
74 help = "The job to look at",
81 // non-regression test for regular attributes, from #2969
86 target_os = "android",
88 target_os = "dragonfly",
90 target_os = "emscripten",
91 target_os = "solaris",
92 target_os = "cloudabi",
95 target_os = "freebsd",
96 target_os = "openbsd",
99 target_os = "fuchsia",
101 all(target_arch = "wasm32", feature = "stdweb"),
102 all(target_arch = "wasm32", feature = "wasm-bindgen"),