diff options
Diffstat (limited to 'tests/run-make/translation/test.rs')
-rw-r--r-- | tests/run-make/translation/test.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/run-make/translation/test.rs b/tests/run-make/translation/test.rs new file mode 100644 index 000000000..b8f5bff31 --- /dev/null +++ b/tests/run-make/translation/test.rs @@ -0,0 +1,18 @@ +// Exact error being tested isn't relevant, it just needs to be known that it uses Fluent-backed +// diagnostics. + +struct Foo { + val: (), +} + +fn foo() -> Foo { + val: (), +} + +fn main() { + let x = foo(); + x.val == 42; + let x = { + val: (), + }; +} |