diff options
author | DJMcNab <[email protected]> | 2019-01-26 18:45:29 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2019-01-26 18:45:29 +0000 |
commit | 7a76433c45b01e969f1eca51aec76db53b9e4db3 (patch) | |
tree | 278c3f26b9c37ec79d27cb3d02d5191cd12e4375 /crates/ra_syntax/tests/data/parser/ok/0043_complex_assignment.rs | |
parent | d0ef1bde893bb46f0c7f9cab34706713169adb49 (diff) |
Struct literals should not be a `BlockLike::Block`
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/ok/0043_complex_assignment.rs')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/ok/0043_complex_assignment.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/ok/0043_complex_assignment.rs b/crates/ra_syntax/tests/data/parser/ok/0043_complex_assignment.rs new file mode 100644 index 000000000..7e4a28bf7 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/ok/0043_complex_assignment.rs | |||
@@ -0,0 +1,8 @@ | |||
1 | // https://github.com/rust-analyzer/rust-analyzer/issues/674 | ||
2 | |||
3 | struct Repr { raw: [u8; 1] } | ||
4 | |||
5 | fn abc() { | ||
6 | Repr { raw: [0] }.raw[0] = 0; | ||
7 | Repr{raw:[0]}(); | ||
8 | } | ||