3 fn foo(b: bool) -> impl std::fmt::Debug {
7 [].into_iter().collect()
10 fn bar(b: bool) -> impl std::fmt::Debug {
12 return [].into_iter().collect()
17 fn bak(b: bool) -> impl std::fmt::Debug {
19 return std::iter::empty().collect()
24 fn baa(b: bool) -> impl std::fmt::Debug {
26 return [42].into_iter().collect()
31 fn muh() -> Result<(), impl std::fmt::Debug> {
33 Ok(()) //~ ERROR type annotations needed
36 fn muh2() -> Result<(), impl std::fmt::Debug> {
37 return Err(From::from("foo")); //~ ERROR type annotations needed
41 fn muh3() -> Result<(), impl std::fmt::Debug> {
42 Err(From::from("foo")) //~ ERROR type annotations needed