mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
307 B
Rust
15 lines
307 B
Rust
// Test that spans get only base in eager type resolution (structurally_resolve_type).
|
|
|
|
fn main() {
|
|
let mut x = Default::default();
|
|
//~^ ERROR type annotations needed
|
|
x.0;
|
|
x = 1;
|
|
}
|
|
|
|
fn foo() {
|
|
let mut x = Default::default();
|
|
//~^ ERROR type annotations needed
|
|
x[0];
|
|
x = 1;
|
|
}
|