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/struct-field-assignability.rs | |
| parent | aa59693565efea3d55a6981b135df77c37c361fc (diff) | |
| download | rust-58bea31ca0e11bf49439d33e1d21f11de7161567.tar.gz rust-58bea31ca0e11bf49439d33e1d21f11de7161567.zip | |
tests: remove uses of Gc.
Diffstat (limited to 'src/test/compile-fail/struct-field-assignability.rs')
| -rw-r--r-- | src/test/compile-fail/struct-field-assignability.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/compile-fail/struct-field-assignability.rs b/src/test/compile-fail/struct-field-assignability.rs index 557341fd4f0..2c3d48e9bf7 100644 --- a/src/test/compile-fail/struct-field-assignability.rs +++ b/src/test/compile-fail/struct-field-assignability.rs @@ -11,13 +11,11 @@ // except according to those terms. -use std::gc::{Gc, GC}; - struct Foo<'a> { x: &'a int } pub fn main() { - let f = Foo { x: &*(box(GC) 3) }; //~ ERROR borrowed value does not live long enough + let f = Foo { x: &*(box 3) }; //~ ERROR borrowed value does not live long enough assert_eq!(*f.x, 3); } |
