b7449926 |
1 | // run-pass |
a7813a04 |
2 | fn 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 | } |