rust/src/test/ui/issues/issue-17905.rs
2018-12-25 21:08:33 -07:00

19 lines
221 B
Rust

// run-pass
#[derive(Debug)]
struct Pair<T, V> (T, V);
impl Pair<
&str,
isize
> {
fn say(&self) {
println!("{:?}", self);
}
}
fn main() {
let result = &Pair("shane", 1);
result.say();
}