rust/crates/syntax/test_data/parser/ok/0066_default_modifier.rs

17 lines
294 B
Rust
Raw Normal View History

2020-08-12 07:26:36 -05:00
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 () {}