| //! Regression test for <https://github.com/rust-lang/rust/issues/17905>. | |
| //@ 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(); | |
| } |