]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/cap-lints.rs
rustdoc-json: Make the `fns/generics.rs` test much more robust
[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 //* 'Foo'
7 pub struct Foo {
8     field: i32,
9 }