2018-05-13 10:52:50 -05:00
|
|
|
// Test that spans get only base in eager type resolution (structurally_resolve_type).
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut x = Default::default();
|
|
|
|
//~^ ERROR type annotations needed
|
2022-02-14 06:25:26 -06:00
|
|
|
x.0;
|
2018-05-13 10:52:50 -05:00
|
|
|
x = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() {
|
|
|
|
let mut x = Default::default();
|
|
|
|
//~^ ERROR type annotations needed
|
2022-02-14 06:25:26 -06:00
|
|
|
x[0];
|
2018-05-13 10:52:50 -05:00
|
|
|
x = 1;
|
|
|
|
}
|