diff options
Diffstat (limited to 'src/test/ui/parser/issues/issue-52496.rs')
-rw-r--r-- | src/test/ui/parser/issues/issue-52496.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/parser/issues/issue-52496.rs b/src/test/ui/parser/issues/issue-52496.rs deleted file mode 100644 index 05461f8b8..000000000 --- a/src/test/ui/parser/issues/issue-52496.rs +++ /dev/null @@ -1,12 +0,0 @@ -struct Foo { bar: f64, baz: i64, bat: i64 } - -fn main() { - let _ = Foo { bar: .5, baz: 42 }; - //~^ ERROR float literals must have an integer part - //~| ERROR missing field `bat` in initializer of `Foo` - let bar = 1.5f32; - let _ = Foo { bar.into(), bat: -1, . }; - //~^ ERROR expected one of - //~| ERROR missing fields `bar` and `baz` in initializer of `Foo` - //~| ERROR expected identifier, found `.` -} |