2016-05-19 07:00:43 -05:00
|
|
|
trait Foo {
|
2017-12-10 15:12:25 -06:00
|
|
|
fn foo(&self, x: u8) -> bool;
|
|
|
|
fn bar(&self, x: u8, y: u8, z: u8);
|
|
|
|
fn less(&self);
|
2016-05-19 07:00:43 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
struct Bar;
|
|
|
|
|
|
|
|
impl Foo for Bar {
|
|
|
|
fn foo(&self) -> bool { true } //~ ERROR E0050
|
2016-09-10 08:27:33 -05:00
|
|
|
fn bar(&self) { } //~ ERROR E0050
|
|
|
|
fn less(&self, x: u8, y: u8, z: u8) { } //~ ERROR E0050
|
2016-05-19 07:00:43 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|