]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/must_implement_one_of.rs
Auto merge of #107549 - Zoxc:rustc-shared, r=jyn514
[rust.git] / tests / rustdoc / must_implement_one_of.rs
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 the `a`, `b` methods is required.$'
7 pub trait Trait {
8     fn a() {}
9     fn b() {}
10 }