Hide the once-move-out privilege for stack fns behind '-Z once-fns'

This commit is contained in:
Ben Blum 2013-06-19 15:53:05 -04:00
parent c1f037e6ac
commit 643be38cfe
4 changed files with 66 additions and 48 deletions

View file

@ -11,6 +11,7 @@
// Testing guarantees provided by once functions.
// This program would segfault if it were legal.
// compile-flags:-Z once-fns
extern mod extra;
use extra::arc;
use std::util;

View file

@ -10,6 +10,7 @@
// Testing guarantees provided by once functions.
// compile-flags:-Z once-fns
extern mod extra;
use extra::arc;
use std::util;