]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/translation/basic-translation.rs
Rollup merge of #100030 - WaffleLapkin:nice_pointer_sis, r=scottmcm
[rust.git] / src / test / run-make / translation / basic-translation.rs
1 // Exact error being tested isn't relevant, it just needs to be known that it uses Fluent-backed
2 // diagnostics.
3
4 struct Foo {
5     val: (),
6 }
7
8 fn foo() -> Foo {
9     val: (),
10 }
11
12 fn main() {
13     let x = foo();
14     x.val == 42;
15     let x = {
16         val: (),
17     };
18 }