]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/unboxed-closure-sugar-region.rs
rustc: always include elidable lifetimes in HIR types.
[rust.git] / src / test / compile-fail / unboxed-closure-sugar-region.rs
index 057b496bd43ebead9d4f321fd67692275a10cdd7..18a1185d695f70ca0de33391fc4fadbc9843bbc5 100644 (file)
@@ -38,9 +38,9 @@ fn test<'a,'b>() {
 }
 
 fn test2(x: &Foo<(isize,),Output=()>, y: &Foo(isize)) {
+//~^ ERROR wrong number of lifetime parameters: expected 1, found 0
     // Here, the omitted lifetimes are expanded to distinct things.
-    same_type(x, y) //~ ERROR cannot infer
-                    //~^ ERROR cannot infer
+    same_type(x, y)
 }
 
 fn main() { }