aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/use-uninit-dtor.rs
blob: fed90df61f696001c73fb0097c02134f24497954 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// error-pattern:Unsatisfied precondition

fn main() {
 state obj foo(int x) {
        drop {
          let int baz;
          log(baz);
        }
 }
 fail;
}