summary refs log tree commit diff
path: root/src/test/compile-fail/mutable-huh-variance-box.rs
blob: 1715acc585949cbbff7d9b39fc6dbd68588c83e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// error-pattern: mismatched types

fn main() {
    let v = @mutable [0];

    fn f(&&v: @mutable [const int]) {
        *v = [mutable 3]
    }

    f(v);
}