error: constructor `should_spawn` has the same name as the type --> $DIR/self_named_constructor.rs:7:5 | LL | / pub fn should_spawn() -> ShouldSpawn { LL | | ShouldSpawn LL | | } | |_____^ | = note: `-D clippy::self-named-constructor` implied by `-D warnings` error: aborting due to previous error