rust/tests/rustdoc/inline_cross/auxiliary/default-trait-method.rs

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

17 lines
196 B
Rust
Raw Normal View History

#![feature(specialization)]
#![crate_name = "foo"]
pub trait Item {
fn foo();
fn bar();
fn baz() {}
}
pub struct Foo;
impl Item for Foo {
default fn foo() {}
fn bar() {}
}