diff options
Diffstat (limited to 'tests/ui/unused-move.rs')
-rw-r--r-- | tests/ui/unused-move.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/unused-move.rs b/tests/ui/unused-move.rs new file mode 100644 index 000000000..697434d47 --- /dev/null +++ b/tests/ui/unused-move.rs @@ -0,0 +1,13 @@ +// run-pass +// Issue #3878 +// Issue Name: Unused move causes a crash +// Abstract: zero-fill to block after drop + +// pretty-expanded FIXME #23616 + +#![allow(path_statements)] + +pub fn main() { + let y: Box<_> = Box::new(1); + y; +} |