Issue #4830 fix
This commit is contained in:
parent
0c2b4edff5
commit
8ebdb3d0ab
4 changed files with 41 additions and 61 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
16
src/test/run-pass/issue-4830.rs
Normal file
16
src/test/run-pass/issue-4830.rs
Normal 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() { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue