diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-17905-2.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-17905-2.rs b/src/test/ui/issues/issue-17905-2.rs new file mode 100644 index 000000000..44279cc86 --- /dev/null +++ b/src/test/ui/issues/issue-17905-2.rs @@ -0,0 +1,18 @@ +#[derive(Debug)] +struct Pair<T, V> (T, V); + +impl Pair< + &str, + isize +> { + fn say(self: &Pair<&str, isize>) { +//~^ ERROR mismatched `self` parameter type +//~| ERROR mismatched `self` parameter type + println!("{:?}", self); + } +} + +fn main() { + let result = &Pair("shane", 1); + result.say(); +} |