Record semantic types for all syntactic types in bodies
This commit is contained in:
parent
5b9b50e712
commit
505ff71ac1
5 changed files with 62 additions and 14 deletions
17
src/test/compile-fail/type-path-err-node-types.rs
Normal file
17
src/test/compile-fail/type-path-err-node-types.rs
Normal 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 };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue