rust-clippy/tests/ui/self_named_constructors.stderr

15 lines
346 B
Text
Raw Normal View History

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