mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
14 lines
170 B
Rust
14 lines
170 B
Rust
#![allow(stutter)]
|
|
|
|
#[warn(clippy::stutter)]
|
|
fn main() {}
|
|
|
|
#[warn(clippy::new_without_default_derive)]
|
|
struct Foo;
|
|
|
|
impl Foo {
|
|
fn new() -> Self {
|
|
Foo
|
|
}
|
|
}
|