summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17905.rs
blob: dae9648b9173f0a3324fb35ada1fc1af5f0ff8d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// run-pass

#[derive(Debug)]
#[allow(unused_tuple_struct_fields)]
struct Pair<T, V> (T, V);

impl Pair<
    &str,
    isize
> {
    fn say(&self) {
        println!("{:?}", self);
    }
}

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