about summary refs log tree commit diff
path: root/tests/ui/delegation/ice-issue-138362.rs
blob: c30660098555bfc65478df781d5084d237ce4f9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![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() {}