2021-07-19 04:52:05 -05:00
|
|
|
error: constructor `should_spawn` has the same name as the type
|
2021-07-29 05:16:06 -05:00
|
|
|
--> $DIR/self_named_constructors.rs:7:5
|
2021-07-19 04:52:05 -05:00
|
|
|
|
|
|
|
|
LL | / pub fn should_spawn() -> ShouldSpawn {
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
2021-07-19 04:52:05 -05:00
|
|
|
LL | | ShouldSpawn
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-07-29 05:16:06 -05:00
|
|
|
= note: `-D clippy::self-named-constructors` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::self_named_constructors)]`
|
2021-07-19 04:52:05 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|