rust/src/test/compile-fail/liveness-ctor-uninit-field.rs
Gareth Daniel Smith 6d86969260 change the test suite //! kind syntax to //~ kind in order to avoid a
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-30 12:23:59 +01:00

15 lines
216 B
Rust

class cat {
let mut a: int;
let mut b: int;
let mut c: int;
new() {
self.a = 3;
self.b = self.a;
self.a += self.c; //~ ERROR use of possibly uninitialized field: `self.c`
}
}
fn main() {
}