Hide the once-move-out privilege for stack fns behind '-Z once-fns'
This commit is contained in:
parent
c1f037e6ac
commit
643be38cfe
4 changed files with 66 additions and 48 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
// Testing guarantees provided by once functions.
|
||||
|
||||
// compile-flags:-Z once-fns
|
||||
extern mod extra;
|
||||
use extra::arc;
|
||||
use std::util;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue