rust/tests/compile-fail/non_expressive_names.rs

38 lines
929 B
Rust
Raw Normal View History

#![feature(plugin)]
#![plugin(clippy)]
#![deny(clippy)]
#![allow(unused)]
fn main() {
let specter: i32;
let spectre: i32;
let apple: i32; //~ NOTE: existing binding defined here
let bpple: i32; //~ ERROR: name is too similar
let cpple: i32; //~ ERROR: name is too similar
let a_bar: i32;
let b_bar: i32;
let c_bar: i32;
let foo_x: i32;
let foo_y: i32;
let rhs: i32;
let lhs: i32;
let bla_rhs: i32;
let bla_lhs: i32;
let blubrhs: i32; //~ NOTE: existing binding defined here
let blublhs: i32; //~ ERROR: name is too similar
let blubx: i32; //~ NOTE: existing binding defined here
let bluby: i32; //~ ERROR: name is too similar
let cake: i32; //~ NOTE: existing binding defined here
let caked: i32; //~ NOTE: existing binding defined here
let cakes: i32; //~ ERROR: name is too similar
let coke: i32; //~ ERROR: name is too similar
}