diff options
Diffstat (limited to 'tests/ui/parser/diff-markers/struct-expr.rs')
-rw-r--r-- | tests/ui/parser/diff-markers/struct-expr.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/parser/diff-markers/struct-expr.rs b/tests/ui/parser/diff-markers/struct-expr.rs new file mode 100644 index 000000000..99d2fd662 --- /dev/null +++ b/tests/ui/parser/diff-markers/struct-expr.rs @@ -0,0 +1,12 @@ +struct S { + x: u8, +} +fn main() { + let _ = S { +<<<<<<< HEAD //~ ERROR encountered diff marker + x: 42, +======= + x: 0, +>>>>>>> branch + } +} |