We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[rustc_must_implement_one_of]
1 parent 3da2553 commit 9b9693cCopy full SHA for 9b9693c
src/test/rustdoc/must_implement_one_of.rs
@@ -0,0 +1,10 @@
1
+#![crate_name = "c"]
2
+#![feature(rustc_attrs)]
3
+
4
+#[rustc_must_implement_one_of(a, b)]
5
+// @matches c/trait.Trait.html '//*[@class="stab must_implement"]' \
6
+// 'At least one of a, b methods is required.$'
7
+pub trait Trait {
8
+ fn a() {}
9
+ fn b() {}
10
+}
0 commit comments