summaryrefslogtreecommitdiffstats
path: root/tests/ui/enum-discriminant/forbidden-discriminant-kind-impl.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/enum-discriminant/forbidden-discriminant-kind-impl.stderr')
-rw-r--r--tests/ui/enum-discriminant/forbidden-discriminant-kind-impl.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/enum-discriminant/forbidden-discriminant-kind-impl.stderr b/tests/ui/enum-discriminant/forbidden-discriminant-kind-impl.stderr
new file mode 100644
index 000000000..38cfd13b9
--- /dev/null
+++ b/tests/ui/enum-discriminant/forbidden-discriminant-kind-impl.stderr
@@ -0,0 +1,9 @@
+error[E0322]: explicit impls for the `DiscriminantKind` trait are not permitted
+ --> $DIR/forbidden-discriminant-kind-impl.rs:9:1
+ |
+LL | impl DiscriminantKind for NewType {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl of `DiscriminantKind` not allowed
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0322`.