1
Fork 0

rustdoc: Remove default keyword from re-exported trait methods

This commit is contained in:
Oliver Middleton 2019-04-14 23:53:51 +01:00
parent 9a612b2348
commit 1db76c1bff
5 changed files with 67 additions and 16 deletions

View file

@ -0,0 +1,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() {}
}