/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
- fn main() {
- 5 <-> 3;
- //~^ ERROR swapping to and from non-lvalue
- //~^^ ERROR swapping to and from non-lvalue
- }