mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-06 12:04:36 +00:00
Add rustdoc test for #[rustc_must_implement_one_of]
This commit is contained in:
parent
3da2553f2f
commit
9b9693c11b
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…
Reference in New Issue
Block a user