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

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

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

    f(v);
}