1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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: (), }; }