PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/src/test/run-pass/move-scalar.rs

http://github.com/jruderman/rust
Rust | 7 lines | 6 code | 1 blank | 0 comment | 1 complexity | 276e6e8e27926ad9f6064c3e14ad8dce MD5 | raw file
1fn main() {
2
3    let y: int = 42;
4    let mut x: int;
5    x <- y;
6    assert (x == 42);
7}