]> git.lizzy.rs Git - rust.git/blob - tests/ui/binding/match-unsized.rs
Rollup merge of #106805 - madsravn:master, r=compiler-errors
[rust.git] / tests / ui / binding / match-unsized.rs
1 // run-pass
2 fn main() {
3     let data: &'static str = "Hello, World!";
4     match data {
5         &ref xs => {
6             assert_eq!(data, xs);
7         }
8     }
9 }