Port over type inference to using the new type relation stuff
This commit is contained in:
parent
e301d7cab2
commit
8403b82ddb
19 changed files with 1147 additions and 962 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue