16 Some(Foo { bar: 1 }) //~ ERROR mismatched types
20 Ok(Foo { bar: 1}) //~ ERROR mismatched types
23 fn b() -> Option<Foo> {
24 Foo { bar: 1 } //~ ERROR mismatched types
27 fn c() -> Result<Foo, Bar> {
28 Foo { bar: 1 } //~ ERROR mismatched types
31 fn d() -> X<X<String, String>, String> {
39 x //~ ERROR mismatched types
42 fn e() -> X<X<String, String>, String> {
50 x //~ ERROR mismatched types
54 1+2 //~ ERROR mismatched types
59 -2 //~ ERROR mismatched types