PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/compile-fail/swap-no-lval.rs

http://github.com/jruderman/rust
Rust | 5 lines | 3 code | 0 blank | 2 comment | 0 complexity | f53f8c62ecd0be0f71a0f7d242e9fbeb MD5 | raw file
1fn main() {
2    5 <-> 3;
3    //~^ ERROR swapping to and from non-lvalue
4    //~^^ ERROR swapping to and from non-lvalue
5}