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

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

    fn f(&&v: [mutable @mutable ~mutable [const int]]) {
    }

    f(v);
}