summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/cap-lints.rs
blob: 08a35339680cd91b76502fc894b5538e2d90e5b5 (plain)
1
2
3
4
5
6
7
8
9
// 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 //* 'Foo'
pub struct Foo {
    field: i32,
}