Sign in
rust
/
rust-lang
/
rust
/
1b01decc1ca851e014b6951bdd7f2ac2f897adc9
/
.
/
tests
/
rustdoc
/
inline_cross
/
auxiliary
/
default-trait-method.rs
blob: ce60bbfb4b0de0e6f07e6a343a585cd2fdc33a08 [
file
] [
log
] [
blame
]
#![
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
()
{}
}