Add rustdoc test for #[rustc_must_implement_one_of]
This commit is contained in:
parent
3da2553f2f
commit
9b9693c11b
1 changed files with 10 additions and 0 deletions
10
src/test/rustdoc/must_implement_one_of.rs
Normal file
10
src/test/rustdoc/must_implement_one_of.rs
Normal file
|
@ -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 a, b methods is required.$'
|
||||
pub trait Trait {
|
||||
fn a() {}
|
||||
fn b() {}
|
||||
}
|
Loading…
Add table
Reference in a new issue