Add rustdoc test for #[rustc_must_implement_one_of]

This commit is contained in:
Maybe Waffle 2022-07-17 20:51:39 +04:00
parent 3da2553f2f
commit 9b9693c11b

View 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() {}
}