diff options
Diffstat (limited to 'src/test/ui/suggestions/type-mismatch-struct-field-shorthand.rs')
-rw-r--r-- | src/test/ui/suggestions/type-mismatch-struct-field-shorthand.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/suggestions/type-mismatch-struct-field-shorthand.rs b/src/test/ui/suggestions/type-mismatch-struct-field-shorthand.rs deleted file mode 100644 index 9d3a17a72..000000000 --- a/src/test/ui/suggestions/type-mismatch-struct-field-shorthand.rs +++ /dev/null @@ -1,12 +0,0 @@ -// run-rustfix -#![allow(dead_code)] - -struct RGB { r: f64, g: f64, b: f64 } - -fn main() { - let (r, g, b): (f32, f32, f32) = (0., 0., 0.); - let _ = RGB { r, g, b }; - //~^ ERROR mismatched types - //~| ERROR mismatched types - //~| ERROR mismatched types -} |