diff options
Diffstat (limited to 'gcc/testsuite/rust/compile/generic-default1.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/generic-default1.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/generic-default1.rs b/gcc/testsuite/rust/compile/generic-default1.rs new file mode 100644 index 0000000..0a132bf --- /dev/null +++ b/gcc/testsuite/rust/compile/generic-default1.rs @@ -0,0 +1,7 @@ +struct Foo<A = i321>(A); +// { dg-error "failed to resolve TypePath: i321" "" { target *-*-* } .-1 } + +fn main() { + let a; + a = Foo(123); +} |