rust-clippy/tests/ui/rename.rs

14 lines
170 B
Rust
Raw Normal View History

2018-12-17 12:59:09 +00:00
#![allow(stutter)]
#[warn(clippy::stutter)]
fn main() {}
#[warn(clippy::new_without_default_derive)]
struct Foo;
impl Foo {
fn new() -> Self {
Foo
}
}