add tests for stutter lints

This commit is contained in:
Oliver Schneider 2016-09-13 10:20:10 +02:00
parent 12a82b2007
commit 40ce3a8f1c
No known key found for this signature in database
GPG key ID: 56D6EEA0FC67AC46

View 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() {}