remove the subtyping relations from TypeVariable

This commit is contained in:
Niko Matsakis 2017-03-16 09:05:39 -04:00
parent 105ec7e3bb
commit e58e2b423d
6 changed files with 51 additions and 130 deletions

View file

@ -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 `_`
}