mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
15 lines
433 B
Text
15 lines
433 B
Text
error: constructor `should_spawn` has the same name as the type
|
|
--> $DIR/self_named_constructors.rs:7:5
|
|
|
|
|
LL | / pub fn should_spawn() -> ShouldSpawn {
|
|
LL | |
|
|
LL | |
|
|
LL | | ShouldSpawn
|
|
LL | | }
|
|
| |_____^
|
|
|
|
|
= note: `-D clippy::self-named-constructors` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::self_named_constructors)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|