1
Fork 0

tests: remove uses of Gc.

This commit is contained in:
Eduard Burtescu 2014-10-02 08:10:09 +03:00
parent aa59693565
commit 58bea31ca0
206 changed files with 322 additions and 3702 deletions

View file

@ -9,15 +9,13 @@
// except according to those terms.
use std::gc::Gc;
trait Mumbo {
fn jumbo(&self, x: Gc<uint>) -> uint;
fn jumbo(&self, x: &uint) -> uint;
}
impl Mumbo for uint {
// Cannot have a larger effect than the trait:
unsafe fn jumbo(&self, x: Gc<uint>) { *self + *x; }
unsafe fn jumbo(&self, x: &uint) { *self + *x; }
//~^ ERROR expected normal fn, found unsafe fn
}