1 // Check that using the parameter name in its type does not ICE.
4 #![feature(async_closure)]
7 let _ = |x: x| x; //~ ERROR expected type
8 let _ = |x: bool| -> x { x }; //~ ERROR expected type
9 let _ = async move |x: x| x; //~ ERROR expected type
10 let _ = async move |x: bool| -> x { x }; //~ ERROR expected type
13 fn foo(x: x) {} //~ ERROR expected type
14 fn foo_ret(x: bool) -> x {} //~ ERROR expected type
16 async fn async_foo(x: x) {} //~ ERROR expected type
17 async fn async_foo_ret(x: bool) -> x {} //~ ERROR expected type