]> git.lizzy.rs Git - rust.git/blob - src/test/ui/slice-mut-2.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / slice-mut-2.stderr
1 error[E0596]: cannot borrow immutable borrowed content `*x` as mutable
2   --> $DIR/slice-mut-2.rs:7:18
3    |
4 LL |     let _ = &mut x[2..4]; //~ERROR cannot borrow immutable borrowed content `*x` as mutable
5    |                  ^ cannot borrow as mutable
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0596`.