]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/match-unsized.rs
Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06
[rust.git] / src / test / 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 }