2021-07-19 04:52:05 -05:00
|
|
|
error: constructor `should_spawn` has the same name as the type
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/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
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error
|
2021-07-19 04:52:05 -05:00
|
|
|
|