add tests for stutter lints
This commit is contained in:
parent
12a82b2007
commit
40ce3a8f1c
14
tests/compile-fail/stutter.rs
Normal file
14
tests/compile-fail/stutter.rs
Normal file
@ -0,0 +1,14 @@
|
||||
#![feature(plugin)]
|
||||
#![plugin(clippy)]
|
||||
#![deny(stutter)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
mod foo {
|
||||
pub fn foo() {}
|
||||
pub fn foo_bar() {} //~ ERROR: item name starts with its containing module's name
|
||||
pub fn bar_foo() {} //~ ERROR: item name ends with its containing module's name
|
||||
pub struct FooCake {} //~ ERROR: item name starts with its containing module's name
|
||||
pub enum CakeFoo {} //~ ERROR: item name ends with its containing module's name
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
x
Reference in New Issue
Block a user