]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/inline_cross/auxiliary/default-trait-method.rs
rustdoc: Remove default keyword from re-exported trait methods
[rust.git] / src / test / rustdoc / inline_cross / auxiliary / default-trait-method.rs
1 #![feature(specialization)]
2
3 #![crate_name = "foo"]
4
5 pub trait Item {
6     fn foo();
7     fn bar();
8     fn baz() {}
9 }
10
11 pub struct Foo;
12
13 impl Item for Foo {
14     default fn foo() {}
15     fn bar() {}
16 }