mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
19 lines
265 B
Rust
19 lines
265 B
Rust
// 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: (),
|
|
};
|
|
}
|