diff options
Diffstat (limited to 'gcc/testsuite/rust/compile/tuple_struct3.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/tuple_struct3.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/tuple_struct3.rs b/gcc/testsuite/rust/compile/tuple_struct3.rs new file mode 100644 index 0000000..4af66b8 --- /dev/null +++ b/gcc/testsuite/rust/compile/tuple_struct3.rs @@ -0,0 +1,6 @@ +struct Foo(i32, i32, bool); + +fn main() { + let c = Foo(1, 2f32, true); + // { dg-error "expected .i32. got .f32." "" { target *-*-* } .-1 } +} |