rust/src/test/compile-fail/iface-impl-different-num-params.rs
Gareth Daniel Smith 6d86969260 change the test suite //! kind syntax to //~ kind in order to avoid a
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-30 12:23:59 +01:00

13 lines
192 B
Rust

iface foo {
fn bar(x: uint) -> self;
}
impl of foo for int {
fn bar() -> int {
//~^ ERROR method `bar` has 0 parameters but the iface has 1
self
}
}
fn main() {
}