rust/src/test/run-pass/borrowed-ptr-pattern-infallible.rs

7 lines
132 B
Rust
Raw Normal View History

2012-09-23 07:39:39 -05:00
fn main() {
let (&x, &y, &z) = (&3, &'a', &@"No pets!");
assert x == 3;
assert y == 'a';
assert z == @"No pets!";
}