mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
13 lines
332 B
Plaintext
13 lines
332 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 | | ShouldSpawn
|
|
LL | | }
|
|
| |_____^
|
|
|
|
|
= note: `-D clippy::self-named-constructors` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|