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