summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/must_implement_one_of.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc/must_implement_one_of.rs')
-rw-r--r--src/test/rustdoc/must_implement_one_of.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc/must_implement_one_of.rs b/src/test/rustdoc/must_implement_one_of.rs
new file mode 100644
index 000000000..1f1dd5d57
--- /dev/null
+++ b/src/test/rustdoc/must_implement_one_of.rs
@@ -0,0 +1,10 @@
+#![crate_name = "c"]
+#![feature(rustc_attrs)]
+
+#[rustc_must_implement_one_of(a, b)]
+// @matches c/trait.Trait.html '//*[@class="stab must_implement"]' \
+// 'At least one of the `a`, `b` methods is required.$'
+pub trait Trait {
+ fn a() {}
+ fn b() {}
+}