]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/usefulness/issue-30240-rpass.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / pattern / usefulness / issue-30240-rpass.rs
CommitLineData
b7449926 1// run-pass
a7813a04 2fn main() {
3157f602
XL
3 let &ref a = &[0i32] as &[_];
4 assert_eq!(a, &[0i32] as &[_]);
5
6 let &ref a = "hello";
7 assert_eq!(a, "hello");
8
9 match "foo" {
10 "fool" => unreachable!(),
11 "foo" => {},
12 ref _x => unreachable!()
54a0048b
SL
13 }
14}