-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-slice-patternsArea: Slice patterns, https://github.com/rust-lang/rust/issues/23121Area: Slice patterns, https://github.com/rust-lang/rust/issues/23121C-bugCategory: This is a bug.Category: This is a bug.
Description
Minimal example: https://is.gd/40m1am
#![feature(slice_patterns)]
fn main() {
let mut buf = [0, 1];
let [ref mut a, ref mut b] = buf;
}
This will complain about multiple mutable borrows, even though it should be valid.
Metadata
Metadata
Assignees
Labels
A-slice-patternsArea: Slice patterns, https://github.com/rust-lang/rust/issues/23121Area: Slice patterns, https://github.com/rust-lang/rust/issues/23121C-bugCategory: This is a bug.Category: This is a bug.