aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser/ok/0066_default_modifier.rs
blob: e443e3495e3af091761a19651d11e75b85fa2b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 () {}