mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
16 lines
307 B
Rust
16 lines
307 B
Rust
trait Foo {
|
|
fn foo(&self, x: u8) -> bool;
|
|
fn bar(&self, x: u8, y: u8, z: u8);
|
|
fn less(&self);
|
|
}
|
|
|
|
struct Bar;
|
|
|
|
impl Foo for Bar {
|
|
fn foo(&self) -> bool { true } //~ ERROR E0050
|
|
fn bar(&self) { } //~ ERROR E0050
|
|
fn less(&self, x: u8, y: u8, z: u8) { } //~ ERROR E0050
|
|
}
|
|
|
|
fn main() {
|
|
}
|