mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
16 lines
272 B
Rust
16 lines
272 B
Rust
#![feature(fn_delegation)]
|
|
#![allow(incomplete_features)]
|
|
|
|
trait HasSelf {
|
|
fn method(self);
|
|
}
|
|
trait NoSelf {
|
|
fn method();
|
|
}
|
|
impl NoSelf for u8 {
|
|
reuse HasSelf::method;
|
|
//~^ ERROR this function takes 1 argument but 0 arguments were supplied
|
|
}
|
|
|
|
fn main() {}
|