rust/src/test/compile-fail/assign-super.rs

5 lines
130 B
Rust
Raw Normal View History

fn main() {
let mut x: [mut int]/~ = [mut 3]/~;
let y: [int]/~ = [3]/~;
x = y; //! ERROR values differ in mutability
}