diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2013-06-24 20:31:29 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2013-06-29 04:39:37 -0400 |
| commit | 98c169e4e594fda871628edc4b9c82a56072c0df (patch) | |
| tree | 65713d7f5befcdff27ebb8f195c03b6f3afb685b | |
| parent | ff4ab9e147b0be4126b8b70ca6ab27173a46077a (diff) | |
| download | rust-98c169e4e594fda871628edc4b9c82a56072c0df.tar.gz rust-98c169e4e594fda871628edc4b9c82a56072c0df.zip | |
Make librust satisfy noncopyable stack closures
| -rw-r--r-- | src/librust/rust.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librust/rust.rs b/src/librust/rust.rs index 68427745ff5..ba5e592b605 100644 --- a/src/librust/rust.rs +++ b/src/librust/rust.rs @@ -57,13 +57,13 @@ impl ValidUsage { } enum Action<'self> { - Call(&'self fn(args: &[~str]) -> ValidUsage), - CallMain(&'static str, &'self fn()), + Call(&'self fn:Copy(args: &[~str]) -> ValidUsage), + CallMain(&'static str, &'self fn:Copy()), } enum UsageSource<'self> { UsgStr(&'self str), - UsgCall(&'self fn()), + UsgCall(&'self fn:Copy()), } struct Command<'self> { |
