rust/src/test/run-pass/let-destruct-ref.rs

6 lines
113 B
Rust
Raw Normal View History

fn main() {
let x = ~"hello";
let ref y = x;
assert_eq!(x.slice(0, x.len()), y.slice(0, y.len()));
}