mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Update ui tests
This commit is contained in:
parent
c22455cb9e
commit
d55d4e5144
2 changed files with 10 additions and 0 deletions
|
@ -9,6 +9,10 @@ mod foo {
|
||||||
pub fn bar_foo() {}
|
pub fn bar_foo() {}
|
||||||
pub struct FooCake {}
|
pub struct FooCake {}
|
||||||
pub enum CakeFoo {}
|
pub enum CakeFoo {}
|
||||||
|
pub struct Foo7Bar;
|
||||||
|
|
||||||
|
// Should not warn
|
||||||
|
pub struct Foobar;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -24,3 +24,9 @@ error: item name ends with its containing module's name
|
||||||
11 | pub enum CakeFoo {}
|
11 | pub enum CakeFoo {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
error: item name starts with its containing module's name
|
||||||
|
--> $DIR/stutter.rs:12:5
|
||||||
|
|
|
||||||
|
12 | pub struct Foo7Bar;
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue