Record semantic types for all syntactic types in bodies

This commit is contained in:
Vadim Petrochenkov 2017-09-16 02:33:41 +03:00
parent 5b9b50e712
commit 505ff71ac1
5 changed files with 62 additions and 14 deletions

View file

@ -0,0 +1,17 @@
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Type arguments of unresolved types should have their types recorded
fn main() {
let _: Nonexistent<u8, Assoc = u16>; //~ ERROR cannot find type `Nonexistent` in this scope
let _ = |a, b: _| -> _ { 0 };
}