tests: remove uses of Gc.
This commit is contained in:
parent
aa59693565
commit
58bea31ca0
206 changed files with 322 additions and 3702 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue