Sign in
rust
/
rust
/
93cd4f8a0494700a59fb499289ece76b9ff89e51
/
.
/
tests
/
rustdoc
/
impl
/
must_implement_one_of.rs
blob: ab965bab35667cafca29b77ee635b50ba04ca5ca [
file
]
#![
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 the `a`, `b` methods is required.$'
pub
trait
Trait
{
fn
a
()
{}
fn
b
()
{}
}