diff options
author | Aleksey Kladov <[email protected]> | 2020-08-12 13:26:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-12 13:28:32 +0100 |
commit | f73a6419d43b21d07b7ee5d3804bdd586ee8036f (patch) | |
tree | c50a6d1bbb31debeaf9a0244f5dab4887b41c266 /crates/ra_syntax/test_data/parser/ok/0066_default_modifier.rs | |
parent | 4b3d99f98f393d1c05b1041d3178cae45ebcd3ff (diff) |
Allow default everywhere
closes #5681
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0066_default_modifier.rs')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0066_default_modifier.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0066_default_modifier.rs b/crates/ra_syntax/test_data/parser/ok/0066_default_modifier.rs new file mode 100644 index 000000000..e443e3495 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0066_default_modifier.rs | |||
@@ -0,0 +1,16 @@ | |||
1 | trait T { | ||
2 | default type T = Bar; | ||
3 | default const f: u8 = 0; | ||
4 | default fn foo() {} | ||
5 | default unsafe fn bar() {} | ||
6 | } | ||
7 | |||
8 | impl T for Foo { | ||
9 | default type T = Bar; | ||
10 | default const f: u8 = 0; | ||
11 | default fn foo() {} | ||
12 | default unsafe fn bar() {} | ||
13 | } | ||
14 | |||
15 | default impl T for () {} | ||
16 | default unsafe impl T for () {} | ||