diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-02-26 11:32:00 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-02-27 09:40:15 -0800 |
| commit | 8d7e6ef7725f8a11de940892a74398fc1911dfc7 (patch) | |
| tree | 44e7cd64fac348be5c823db76cdd9a0738c3074d /src/test/compile-fail | |
| parent | 061a2237230d3abcdb30ecb8987e5de17e67a58e (diff) | |
| download | rust-8d7e6ef7725f8a11de940892a74398fc1911dfc7.tar.gz rust-8d7e6ef7725f8a11de940892a74398fc1911dfc7.zip | |
libsyntax: Forbid `~mut` and `~const`. rs=demuting
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/mutable-huh-unique-assign.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/compile-fail/mutable-huh-unique-assign.rs b/src/test/compile-fail/mutable-huh-unique-assign.rs deleted file mode 100644 index 8b59879acd9..00000000000 --- a/src/test/compile-fail/mutable-huh-unique-assign.rs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2012 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -fn main() { - fn f(&&v: ~const int) { - *v = 1 //~ ERROR assigning to dereference of const ~ pointer - } - - let v = ~0; - - f(v); -} |
