Port over type inference to using the new type relation stuff

This commit is contained in:
Niko Matsakis 2015-03-22 15:11:56 -04:00
parent e301d7cab2
commit 8403b82ddb
19 changed files with 1147 additions and 962 deletions

View file

@ -23,10 +23,6 @@ pub fn main() {
let f2: &Fat<[isize; 3]> = &f1;
let f3: &Fat<[usize]> = f2;
//~^ ERROR mismatched types
//~| expected `&Fat<[usize]>`
//~| found `&Fat<[isize; 3]>`
//~| expected usize
//~| found isize
// With a trait.
let f1 = Fat { ptr: Foo };