rust/tests/rustdoc/must_implement_one_of.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
262 B
Rust
Raw Normal View History

#![crate_name = "c"]
#![feature(rustc_attrs)]
#[rustc_must_implement_one_of(a, b)]
//@ matches c/trait.Trait.html '//*[@class="stab must_implement"]' \
2022-07-25 17:12:56 +00:00
// 'At least one of the `a`, `b` methods is required.$'
pub trait Trait {
fn a() {}
fn b() {}
}