rust/crates/syntax/test_data/parser/ok/0066_default_modifier.rs
2020-08-12 18:30:53 +02:00

17 lines
294 B
Rust

trait T {
default type T = Bar;
default const f: u8 = 0;
default fn foo() {}
default unsafe fn bar() {}
}
impl T for Foo {
default type T = Bar;
default const f: u8 = 0;
default fn foo() {}
default unsafe fn bar() {}
}
default impl T for () {}
default unsafe impl T for () {}