Skip to content

Commit 9b9693c

Browse files
committed
Add rustdoc test for #[rustc_must_implement_one_of]
1 parent 3da2553 commit 9b9693c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)