aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/writing-to-immutable-obj.rs
blob: 563fc9cd84e6b681b8ebfced3341eed056af0ab7 (plain) (blame)
1
2
3
4
5
6
7
8
9
// xfail-stage0
// error-pattern: writing to immutable type
obj objy(int x) {
    fn foo() -> () {
        x = 5;
    }
}
fn main() {
}