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