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