]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/cap-lints.rs
Rollup merge of #107169 - albertlarsan68:lock-in-pre-push, r=Mark-Simulacrum
[rust.git] / tests / 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 //* 'Foo'
7 pub struct Foo {
8     field: i32,
9 }