rust/src/test/rustdoc/cap-lints.rs
2018-12-25 21:08:33 -07:00

10 lines
308 B
Rust

// 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)]
// @has cap_lints/struct.Foo.html //pre '#[must_use]'
#[must_use]
pub struct Foo {
field: i32,
}