diff options
Diffstat (limited to 'src/test/run-pass/trait-object-generics.rs')
| -rw-r--r-- | src/test/run-pass/trait-object-generics.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/test/run-pass/trait-object-generics.rs b/src/test/run-pass/trait-object-generics.rs index fdae975a637..e2422a1dcf5 100644 --- a/src/test/run-pass/trait-object-generics.rs +++ b/src/test/run-pass/trait-object-generics.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[feature(managed_boxes)]; - // test for #8664 pub trait Trait2<A> { @@ -19,7 +17,8 @@ pub trait Trait2<A> { pub struct Impl<A1, A2, A3> { /* * With A2 we get the ICE: - * task <unnamed> failed at 'index out of bounds: the len is 1 but the index is 1', /home/tortue/rust_compiler_newest/src/librustc/middle/subst.rs:58 + * task <unnamed> failed at 'index out of bounds: the len is 1 but the index is 1', + * src/librustc/middle/subst.rs:58 */ t: ~Trait2<A2> } @@ -42,7 +41,7 @@ impl<V> Trait<u8,V> for () { fn method(&self, _x: Type<(u8,V)>) -> int { 0 } } -pub fn main () { - let a = @() as @Trait<u8, u8>; +pub fn main() { + let a = ~() as ~Trait<u8, u8>; assert_eq!(a.method(Constant), 0); } |
