49e2570b77
fixes #899
15 lines
296 B
Rust
15 lines
296 B
Rust
#![feature(plugin)]
|
|
#![plugin(clippy)]
|
|
#![deny(clippy,similar_names)]
|
|
#![allow(unused)]
|
|
|
|
struct Foo {
|
|
apple: i32,
|
|
bpple: i32,
|
|
}
|
|
|
|
fn main() {
|
|
let Foo { apple, bpple } = unimplemented!();
|
|
let Foo { apple: spring, bpple: sprang } = unimplemented!(); //~ ERROR: name is too similar
|
|
}
|