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