about summary refs log tree commit diff
path: root/tests/ui/consts/escaping-bound-var.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/escaping-bound-var.rs')
-rw-r--r--tests/ui/consts/escaping-bound-var.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/consts/escaping-bound-var.rs b/tests/ui/consts/escaping-bound-var.rs
index 7c1fbd24f55..a538d607d6c 100644
--- a/tests/ui/consts/escaping-bound-var.rs
+++ b/tests/ui/consts/escaping-bound-var.rs
@@ -3,7 +3,7 @@
 
 fn test<'a>(
     _: &'a (),
-) -> [(); {
+) -> [(); { //~ ERROR: mismatched types
     let x: &'a ();
     //~^ ERROR cannot capture late-bound lifetime in constant
     1