blob: c6936cf8392232fe85ee66365b87b0b96a971c20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// xfail-test
fn foo(cond: bool) {
// Here we will infer a type that uses the
// region of the if stmt then block, but in the scope:
let mut x; //~ ERROR foo
if cond {
x = &[1,2,3]blk;
}
}
fn main() {}
|