summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/derivable_impls.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/derivable_impls.stderr')
-rw-r--r--src/tools/clippy/tests/ui/derivable_impls.stderr23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/derivable_impls.stderr b/src/tools/clippy/tests/ui/derivable_impls.stderr
index c1db5a58b..81963c3be 100644
--- a/src/tools/clippy/tests/ui/derivable_impls.stderr
+++ b/src/tools/clippy/tests/ui/derivable_impls.stderr
@@ -113,5 +113,26 @@ help: ...and instead derive it
LL | #[derive(Default)]
|
-error: aborting due to 7 previous errors
+error: this `impl` can be derived
+ --> $DIR/derivable_impls.rs:252:1
+ |
+LL | / impl Default for SimpleEnum {
+LL | | fn default() -> Self {
+LL | | SimpleEnum::Bar
+LL | | }
+LL | | }
+ | |_^
+ |
+ = help: remove the manual implementation...
+help: ...and instead derive it...
+ |
+LL | #[derive(Default)]
+ |
+help: ...and mark the default variant
+ |
+LL ~ #[default]
+LL ~ Bar,
+ |
+
+error: aborting due to 8 previous errors