diff options
Diffstat (limited to 'gcc/testsuite/rust/compile/issue-3615.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/issue-3615.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/issue-3615.rs b/gcc/testsuite/rust/compile/issue-3615.rs new file mode 100644 index 0000000..e5c5072 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-3615.rs @@ -0,0 +1,7 @@ +pub trait Trait { + pub fn nrvo(init: fn()) -> [u8; 4096] { + let mut buf = [0; 4096]; + + buf + } +} |