rust/tests/ui/self_named_constructors.stderr
2023-08-22 17:18:11 +02:00

15 lines
346 B
Plaintext

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