3 // Since we are testing nll migration explicitly as a separate
4 // revision, don't worry about the --compare-mode=nll on this test.
6 // ignore-compare-mode-nll
8 //[ast]compile-flags: -Z borrowck=ast
9 //[nll]compile-flags: -Z borrowck=migrate -Z two-phase-borrows
15 type Tuple = (S, i32);
17 struct Spair { x: S, y: i32 }
23 //[nll]~^ ERROR assign to part of possibly uninitialized variable: `t` [E0381]
25 println!("{:?} {:?}", t.0, t.1);
26 //[ast]~^ ERROR use of possibly uninitialized variable: `t.0` [E0381]
27 //[ast]~| ERROR use of possibly uninitialized variable: `t.1` [E0381]
33 //[nll]~^ ERROR assign to part of possibly uninitialized variable: `u` [E0381]
35 println!("{:?} {:?}", u.0, u.1);
36 //[ast]~^ ERROR use of possibly uninitialized variable: `u.0` [E0381]
37 //[ast]~| ERROR use of possibly uninitialized variable: `u.1` [E0381]
43 //[nll]~^ ERROR assign to part of possibly uninitialized variable: `v` [E0381]
45 println!("{:?} {:?}", v.x, v.y);
46 //[ast]~^ ERROR use of possibly uninitialized variable: `v.x` [E0381]
47 //[ast]~| ERROR use of possibly uninitialized variable: `v.y` [E0381]