1 // rustfmt-wrap_comments: true
2 // rustfmt-normalize_doc_attributes: true
4 // Only doc = "" attributes should be normalized
5 //! Example doc attribute comment
6 //! Example doc attribute comment with 10 leading spaces
8 html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
9 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
10 html_root_url = "https://doc.rust-lang.org/nightly/",
11 html_playground_url = "https://play.rust-lang.org/",
12 test(attr(deny(warnings)))
15 // Long `#[doc = "..."]`
17 /// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
21 /// The `nodes` and `edges` method each return instantiations of `Cow<[T]>` to
22 /// leave implementers the freedom to create entirely new vectors or to pass
23 /// back slices into internally owned vectors.
41 /// item doc attrib comment
42 // regular item comment
45 // regular item comment
46 /// item doc attrib comment
50 // non-regression test for regular attributes, from #2647
52 feature = "this_line_is_101_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
59 #[clippy::bar(a, b, c)]
63 #[derive(Debug, StructOpt)]
64 #[structopt(about = "Display information about the character on FF Logs")]
66 #[structopt(help = "The server the character is on")]
68 #[structopt(help = "The character's first name")]
70 #[structopt(help = "The character's last name")]
75 help = "The job to look at",
82 // non-regression test for regular attributes, from #2969
87 target_os = "android",
89 target_os = "dragonfly",
91 target_os = "emscripten",
92 target_os = "solaris",
93 target_os = "cloudabi",
96 target_os = "freebsd",
97 target_os = "openbsd",
100 target_os = "fuchsia",
102 all(target_arch = "wasm32", feature = "stdweb"),
103 all(target_arch = "wasm32", feature = "wasm-bindgen"),
108 // use cases from bindgen needing precise control over leading spaces
109 /// <div rustbindgen accessor></div>
111 #[derive(Debug, Default, Copy, Clone)]
112 pub struct ContradictAccessors {
113 ///<foo>no leading spaces here</foo>
114 pub mBothAccessors: ::std::os::raw::c_int,
115 /// <div rustbindgen accessor="false"></div>
116 pub mNoAccessors: ::std::os::raw::c_int,
117 /// <div rustbindgen accessor="unsafe"></div>
118 pub mUnsafeAccessors: ::std::os::raw::c_int,
119 /// <div rustbindgen accessor="immutable"></div>
120 pub mImmutableAccessor: ::std::os::raw::c_int,
123 /// \brief MPI structure
125 #[derive(Debug, Copy, Clone)]
126 pub struct mbedtls_mpi {
128 pub s: ::std::os::raw::c_int,
129 ///< total # of limbs
130 pub n: ::std::os::raw::c_ulong,
131 ///< pointer to limbs
132 pub p: *mut mbedtls_mpi_uint,