]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17905-2.rs
Rollup merge of #100168 - WaffleLapkin:improve_diagnostics_for_missing_type_in_a_cons...
[rust.git] / src / test / ui / issues / issue-17905-2.rs
1 #[derive(Debug)]
2 struct Pair<T, V> (T, V);
3
4 impl Pair<
5     &str,
6     isize
7 > {
8     fn say(self: &Pair<&str, isize>) {
9 //~^ ERROR mismatched `self` parameter type
10 //~| ERROR mismatched `self` parameter type
11         println!("{:?}", self);
12     }
13 }
14
15 fn main() {
16     let result = &Pair("shane", 1);
17     result.say();
18 }