summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/inline_cross/auxiliary/default-trait-method.rs
blob: ce60bbfb4b0de0e6f07e6a343a585cd2fdc33a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![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() {}
}