diff options
Diffstat (limited to 'src/test/ui/binding/match-unsized.rs')
-rw-r--r-- | src/test/ui/binding/match-unsized.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/binding/match-unsized.rs b/src/test/ui/binding/match-unsized.rs new file mode 100644 index 000000000..41937a557 --- /dev/null +++ b/src/test/ui/binding/match-unsized.rs @@ -0,0 +1,9 @@ +// run-pass +fn main() { + let data: &'static str = "Hello, World!"; + match data { + &ref xs => { + assert_eq!(data, xs); + } + } +} |