summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/default-method/rustc_must_implement_one_of_gated.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/default-method/rustc_must_implement_one_of_gated.stderr')
-rw-r--r--tests/ui/traits/default-method/rustc_must_implement_one_of_gated.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/traits/default-method/rustc_must_implement_one_of_gated.stderr b/tests/ui/traits/default-method/rustc_must_implement_one_of_gated.stderr
new file mode 100644
index 000000000..228bc3e35
--- /dev/null
+++ b/tests/ui/traits/default-method/rustc_must_implement_one_of_gated.stderr
@@ -0,0 +1,11 @@
+error[E0658]: the `#[rustc_must_implement_one_of]` attribute is used to change minimal complete definition of a trait, it's currently in experimental form and should be changed before being exposed outside of the std
+ --> $DIR/rustc_must_implement_one_of_gated.rs:1:1
+ |
+LL | #[rustc_must_implement_one_of(eq, neq)]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ |
+ = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0658`.