This commit is contained in:
Seth Pink 2013-02-09 23:00:55 +10:00
parent 0c2b4edff5
commit 8ebdb3d0ab
4 changed files with 41 additions and 61 deletions

View file

@ -29,14 +29,6 @@ struct s {
//~^ ERROR obsolete syntax: struct constructor
}
struct ss {
fn foo() { }
//~^ ERROR obsolete syntax: class method
#[whatever]
fn foo() { }
//~^ ERROR obsolete syntax: class method
}
struct q : r {
//~^ ERROR obsolete syntax: class traits
}

View file

@ -0,0 +1,16 @@
// 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.
pub struct Scheduler {
/// The event loop used to drive the scheduler and perform I/O
priv event_loop: ~int
}
pub fn main() { }