]> git.lizzy.rs Git - rust.git/blob - tests/ui/self_named_constructors.stderr
[`excessive_bools`] lint trait functions even without bodies
[rust.git] / tests / ui / self_named_constructors.stderr
1 error: constructor `should_spawn` has the same name as the type
2   --> $DIR/self_named_constructors.rs:7:5
3    |
4 LL | /     pub fn should_spawn() -> ShouldSpawn {
5 LL | |         ShouldSpawn
6 LL | |     }
7    | |_____^
8    |
9    = note: `-D clippy::self-named-constructors` implied by `-D warnings`
10
11 error: aborting due to previous error
12