2012-05-19 05:52:01 -07:00
|
|
|
class cat {
|
|
|
|
let mut a: int;
|
|
|
|
let mut b: int;
|
|
|
|
let mut c: int;
|
|
|
|
|
|
|
|
new() {
|
|
|
|
self.a = 3;
|
|
|
|
self.b = self.a;
|
2012-06-30 12:23:59 +01:00
|
|
|
self.a += self.c; //~ ERROR use of possibly uninitialized field: `self.c`
|
2012-05-19 05:52:01 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|