remove the subtyping relations from TypeVariable
This commit is contained in:
parent
105ec7e3bb
commit
e58e2b423d
6 changed files with 51 additions and 130 deletions
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
fn main() {
|
||||
let v = &[];
|
||||
//~^ NOTE consider giving `it` a type
|
||||
let it = v.iter(); //~ ERROR cannot infer type for `_`
|
||||
let v = &[]; //~ NOTE consider giving `v` a type
|
||||
let it = v.iter(); //~ ERROR type annotations needed
|
||||
//~^ NOTE cannot infer type for `_`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue