diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2014-10-02 08:10:09 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2014-10-02 17:02:15 +0300 |
| commit | 58bea31ca0e11bf49439d33e1d21f11de7161567 (patch) | |
| tree | aff1807b2eab123a85d5fdc66076048a1719c07d /src/test/compile-fail/check-static-values-constraints.rs | |
| parent | aa59693565efea3d55a6981b135df77c37c361fc (diff) | |
| download | rust-58bea31ca0e11bf49439d33e1d21f11de7161567.tar.gz rust-58bea31ca0e11bf49439d33e1d21f11de7161567.zip | |
tests: remove uses of Gc.
Diffstat (limited to 'src/test/compile-fail/check-static-values-constraints.rs')
| -rw-r--r-- | src/test/compile-fail/check-static-values-constraints.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/test/compile-fail/check-static-values-constraints.rs b/src/test/compile-fail/check-static-values-constraints.rs index 3e67419843c..e29be22ca9a 100644 --- a/src/test/compile-fail/check-static-values-constraints.rs +++ b/src/test/compile-fail/check-static-values-constraints.rs @@ -11,7 +11,6 @@ // Verifies all possible restrictions for static items values. use std::kinds::marker; -use std::gc::{Gc, GC}; struct WithDtor; @@ -124,9 +123,6 @@ static STATIC16: (&'static Box<MyOwned>, &'static Box<MyOwned>) = static mut STATIC17: SafeEnum = Variant1; //~^ ERROR mutable static items are not allowed to have destructors -static STATIC18: Gc<SafeStruct> = box(GC) SafeStruct{field1: Variant1, field2: Variant2(0)}; -//~^ ERROR static items are not allowed to have custom pointers - static STATIC19: Box<int> = box 3; //~^ ERROR static items are not allowed to have custom pointers |
