2021-06-25 15:34:45 -05:00
|
|
|
error: constructor `should_spawn` has the same name as the type
|
2021-07-29 05:10:18 -05:00
|
|
|
--> $DIR/self_named_constructors.rs:7:5
|
2021-06-25 15:34:45 -05:00
|
|
|
|
|
|
|
|
LL | / pub fn should_spawn() -> ShouldSpawn {
|
2023-07-28 14:35:48 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
2021-06-25 15:34:45 -05:00
|
|
|
LL | | ShouldSpawn
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
2021-07-29 05:10:18 -05:00
|
|
|
= note: `-D clippy::self-named-constructors` implied by `-D warnings`
|
2021-06-25 15:34:45 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|