summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17905-2.rs
blob: 44279cc867b46e268a4a5e58f76bf937f0990fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug)]
struct Pair<T, V> (T, V);

impl Pair<
    &str,
    isize
> {
    fn say(self: &Pair<&str, isize>) {
//~^ ERROR mismatched `self` parameter type
//~| ERROR mismatched `self` parameter type
        println!("{:?}", self);
    }
}

fn main() {
    let result = &Pair("shane", 1);
    result.say();
}