diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/self_named_constructors.stderr')
-rw-r--r-- | src/tools/clippy/tests/ui/self_named_constructors.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/self_named_constructors.stderr b/src/tools/clippy/tests/ui/self_named_constructors.stderr new file mode 100644 index 000000000..ba989f06d --- /dev/null +++ b/src/tools/clippy/tests/ui/self_named_constructors.stderr @@ -0,0 +1,12 @@ +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 + |