]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-17905.rs
Rollup merge of #106148 - chenyukang:yukang/fix-105061-unused, r=lcnr
[rust.git] / tests / ui / issues / issue-17905.rs
1 // run-pass
2
3 #[derive(Debug)]
4 #[allow(unused_tuple_struct_fields)]
5 struct Pair<T, V> (T, V);
6
7 impl Pair<
8     &str,
9     isize
10 > {
11     fn say(&self) {
12         println!("{:?}", self);
13     }
14 }
15
16 fn main() {
17     let result = &Pair("shane", 1);
18     result.say();
19 }