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

6 lines
122 B
Rust
Raw Normal View History

2012-05-10 21:58:23 -05:00
fn main() {
5 <-> 3;
//~^ ERROR swapping to and from non-lvalue
//~^^ ERROR swapping to and from non-lvalue
2012-05-10 21:58:23 -05:00
}