about summary refs log tree commit diff
path: root/src/test/ui/reachable/expr_struct.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-11-24 12:38:11 +0000
committerbors <bors@rust-lang.org>2017-11-24 12:38:11 +0000
commit71da1c21ebc79f19e749344c8b4e2c13f533872e (patch)
treedc135ce6161978161d4c7003b8bca5f3a84b8269 /src/test/ui/reachable/expr_struct.rs
parent85d50ce1c72dc577fad26a81acea390c60bb48c2 (diff)
parent8937d6a6cfb011d9e1fe6b4a426913dbbf9fd584 (diff)
downloadrust-71da1c21ebc79f19e749344c8b4e2c13f533872e.tar.gz
rust-71da1c21ebc79f19e749344c8b4e2c13f533872e.zip
Auto merge of #46116 - oli-obk:json_ui, r=nikomatsakis
Check //~ERROR comments in ui tests

r? @nikomatsakis

cc #44844 @Phlosioneer @estebank @petrochenkov

this depends on https://github.com/rust-lang/rust/pull/46052 getting merged first (the commits are included in here)

The relevant changes of this PR are c2f0af7 and 979269b
Diffstat (limited to 'src/test/ui/reachable/expr_struct.rs')
-rw-r--r--src/test/ui/reachable/expr_struct.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/reachable/expr_struct.rs b/src/test/ui/reachable/expr_struct.rs
index 09e31819279..b5acd395be6 100644
--- a/src/test/ui/reachable/expr_struct.rs
+++ b/src/test/ui/reachable/expr_struct.rs
@@ -22,22 +22,22 @@ struct Foo {
 
 fn a() {
     // struct expr is unreachable:
-    let x = Foo { a: 22, b: 33, ..return };
+    let x = Foo { a: 22, b: 33, ..return }; //~ ERROR unreachable
 }
 
 fn b() {
     // the `33` is unreachable:
-    let x = Foo { a: return, b: 33, ..return };
+    let x = Foo { a: return, b: 33, ..return }; //~ ERROR unreachable
 }
 
 fn c() {
     // the `..return` is unreachable:
-    let x = Foo { a: 22, b: return, ..return };
+    let x = Foo { a: 22, b: return, ..return }; //~ ERROR unreachable
 }
 
 fn d() {
     // the struct expr is unreachable:
-    let x = Foo { a: 22, b: return };
+    let x = Foo { a: 22, b: return }; //~ ERROR unreachable
 }
 
 fn main() { }