]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/cap-lints.rs
Rollup merge of #69194 - Centril:assoc-extern-fuse, r=petrochenkov
[rust.git] / src / test / rustdoc / cap-lints.rs
1 // This should fail a normal compile due to non_camel_case_types,
2 // It should pass a doc-compile as it only needs to type-check and
3 // therefore should not concern itself with the lints.
4 #[deny(warnings)]
5
6 // @has cap_lints/struct.Foo.html //pre '#[must_use]'
7 #[must_use]
8 pub struct Foo {
9     field: i32,
10 }