]> git.proxmox.com Git - rustc.git/blame - src/doc/book/listings/ch19-advanced-features/listing-19-05/output.txt
New upstream version 1.50.0+dfsg1
[rustc.git] / src / doc / book / listings / ch19-advanced-features / listing-19-05 / output.txt
CommitLineData
74b04a01
XL
1$ cargo run
2 Compiling unsafe-example v0.1.0 (file:///projects/unsafe-example)
3error[E0499]: cannot borrow `*slice` as mutable more than once at a time
4 --> src/main.rs:6:30
5 |
61 | fn split_at_mut(slice: &mut [i32], mid: usize) -> (&mut [i32], &mut [i32]) {
7 | - let's call the lifetime of this reference `'1`
8...
96 | (&mut slice[..mid], &mut slice[mid..])
10 | -------------------------^^^^^--------
11 | | | |
12 | | | second mutable borrow occurs here
13 | | first mutable borrow occurs here
14 | returning this value requires that `*slice` is borrowed for `'1`
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0499`.
fc512014 19error: could not compile `unsafe-example`
74b04a01
XL
20
21To learn more, run the command again with --verbose.