rust/tests/rustdoc/cap-lints.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
286 B
Rust
Raw Normal View History

// 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'
2018-06-09 19:06:40 +00:00
pub struct Foo {
field: i32,
}