]>
Commit | Line | Data |
---|---|---|
74b04a01 XL |
1 | $ cargo run |
2 | Compiling ownership v0.1.0 (file:///projects/ownership) | |
3 | error[E0499]: cannot borrow `s` as mutable more than once at a time | |
4 | --> src/main.rs:5:14 | |
5 | | | |
6 | 4 | let r1 = &mut s; | |
7 | | ------ first mutable borrow occurs here | |
8 | 5 | let r2 = &mut s; | |
9 | | ^^^^^^ second mutable borrow occurs here | |
487cf647 | 10 | 6 | |
74b04a01 XL |
11 | 7 | println!("{}, {}", r1, r2); |
12 | | -- first borrow later used here | |
13 | ||
74b04a01 | 14 | For more information about this error, try `rustc --explain E0499`. |
c295e0f8 | 15 | error: could not compile `ownership` due to previous error |