2015-11-02 17:44:53 -06:00
|
|
|
// This should fail a normal compile due to non_camel_case_types,
|
|
|
|
// It should pass a doc-compile as it only needs to type-check and
|
|
|
|
// therefore should not concern itself with the lints.
|
|
|
|
#[deny(warnings)]
|
|
|
|
|
Simplify and unify rustdoc sidebar styles
This switches to just use size, weight, and spacing to distinguish
headings in the sidebar. We no longer use boxes, horizontal bars, or
centering to distinguish headings. This makes it much easier to
understand the hierarchy of headings, and reduces visual noise.
I also refactored how the mobile topbar works. Previously, we tried to
shift around elements from the sidebar to make the topbar. Now, the
topbar gets its own elements, which can be styled on their own. This
makes styling and reasoning about those elements simpler.
Because the heading font sizes are bigger, increase the sidebar width
slightly.
As a very minor change, removed version from the "All types" page. It's
now only on the crate page.
2022-01-06 18:48:24 -06:00
|
|
|
// @has cap_lints/struct.Foo.html //* 'Foo'
|
2018-06-09 14:06:40 -05:00
|
|
|
pub struct Foo {
|
2015-11-02 17:44:53 -06:00
|
|
|
field: i32,
|
|
|
|
}
|