diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-06-11 19:33:52 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-14 10:45:37 -0700 |
| commit | ade807c6dcf6dc4454732c5e914ca06ebb429773 (patch) | |
| tree | 64606dac9c81ec4567e19f503d4d82e249dbf40a /src/test/compile-fail/trait-impl-method-mismatch.rs | |
| parent | f20b1293fcce4e120bd4a57226e0817271cd672c (diff) | |
| download | rust-ade807c6dcf6dc4454732c5e914ca06ebb429773.tar.gz rust-ade807c6dcf6dc4454732c5e914ca06ebb429773.zip | |
rustc: Obsolete the `@` syntax entirely
This removes all remnants of `@` pointers from rustc. Additionally, this removes the `GC` structure from the prelude as it seems odd exporting an experimental type in the prelude by default. Closes #14193 [breaking-change]
Diffstat (limited to 'src/test/compile-fail/trait-impl-method-mismatch.rs')
| -rw-r--r-- | src/test/compile-fail/trait-impl-method-mismatch.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/trait-impl-method-mismatch.rs b/src/test/compile-fail/trait-impl-method-mismatch.rs index e64f76bb4cd..8df4bb47f88 100644 --- a/src/test/compile-fail/trait-impl-method-mismatch.rs +++ b/src/test/compile-fail/trait-impl-method-mismatch.rs @@ -10,13 +10,15 @@ #![feature(managed_boxes)] +use std::gc::Gc; + trait Mumbo { - fn jumbo(&self, x: @uint) -> uint; + fn jumbo(&self, x: Gc<uint>) -> uint; } impl Mumbo for uint { // Cannot have a larger effect than the trait: - unsafe fn jumbo(&self, x: @uint) { *self + *x; } + unsafe fn jumbo(&self, x: Gc<uint>) { *self + *x; } //~^ ERROR expected normal fn but found unsafe fn } |
