about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2017-01-09 17:46:11 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2017-01-28 02:56:46 +0200
commit7a2a669bb70633a8c9ac4be708813b311c52ff93 (patch)
tree7208cdb89fec46aacbe5902b1dfe422f46aa2863 /src/test/compile-fail
parentf79feba2053c78425b6490c8587359846fa6648f (diff)
downloadrust-7a2a669bb70633a8c9ac4be708813b311c52ff93.tar.gz
rust-7a2a669bb70633a8c9ac4be708813b311c52ff93.zip
rustc: always include elidable lifetimes in HIR types.
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/unboxed-closure-sugar-region.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/unboxed-closure-sugar-region.rs b/src/test/compile-fail/unboxed-closure-sugar-region.rs
index 057b496bd43..18a1185d695 100644
--- a/src/test/compile-fail/unboxed-closure-sugar-region.rs
+++ b/src/test/compile-fail/unboxed-closure-sugar-region.rs
@@ -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() { }