// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// ignore-test
-//
-// Ignored because of an ICE at the moment.
-
// Check that non-constant exprs do fail as count in fixed length vec type
fn main() {
+++ /dev/null
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// ignore-test #12920
-
-pub fn main() { if 1 == 1 { return; } println!("Paul is dead"); }
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// ignore-test
// Testing that supertrait methods can be called on subtrait object types
-// It's not clear yet that we want this
trait Foo {
- fn f() -> int;
+ fn f(&self) -> int;
}
trait Bar : Foo {
- fn g() -> int;
+ fn g(&self) -> int;
}
struct A {
}
impl Foo for A {
- fn f() -> int { 10 }
+ fn f(&self) -> int { 10 }
}
impl Bar for A {
- fn g() -> int { 20 }
+ fn g(&self) -> int { 20 }
}
pub fn main() {