]> git.proxmox.com Git - rustc.git/blame_incremental - src/test/ui/issues/issue-17905-2.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-17905-2.rs
... / ...
CommitLineData
1#[derive(Debug)]
2struct Pair<T, V> (T, V);
3
4impl 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
15fn main() {
16 let result = &Pair("shane", 1);
17 result.say();
18}