blob: a38f07d58e47456695546b45093ba4e0a174c59a [file] [log] [blame]
// Test that spans get only base in eager type resolution (structurally_resolve_type).
fn main() {
let mut x = Default::default();
x.0;
//~^ ERROR type annotations needed
x = 1;
}
fn foo() {
let mut x = Default::default();
x[0];
//~^ ERROR type annotations needed
x = 1;
}