mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-19 11:43:39 -04:00
10 lines
286 B
Rust
10 lines
286 B
Rust
// 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,
|
|
}
|