mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
11 lines
262 B
Rust
11 lines
262 B
Rust
#![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() {}
|
|
}
|