summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/self_named_constructors.stderr
blob: f299b860d4783d39cc3150a8b5f379f0fdb613ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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`
   = help: to override `-D warnings` add `#[allow(clippy::self_named_constructors)]`

error: aborting due to previous error