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> {
34 //~^ ERROR type annotations needed
37 fn muh2() -> Result<(), impl std::fmt::Debug> {
38 return Err(From::from("foo"));
39 //~^ ERROR type annotations needed
43 fn muh3() -> Result<(), impl std::fmt::Debug> {
44 Err(From::from("foo"))
45 //~^ ERROR type annotations needed