@@ -153,18 +153,18 @@ fn test_closure() {
153153 // identifier, nor as `(S + move || 1) == (1)` by misinterpreting the
154154 // closure precedence.
155155 let test = || Ok ( ensure ! ( S + move || 1 == 1 ) ) ;
156- assert_err ( test, "Condition failed: `S + ( move || 1 == 1) `" ) ;
156+ assert_err ( test, "Condition failed: `S + move || 1 == 1`" ) ;
157157
158158 let test = || Ok ( ensure ! ( S + || 1 == 1 ) ) ;
159- assert_err ( test, "Condition failed: `S + ( || 1 == 1) `" ) ;
159+ assert_err ( test, "Condition failed: `S + || 1 == 1`" ) ;
160160
161161 // Must not partition as `S + ((move | ()) | 1) == 1` by treating those
162162 // pipes as bitwise-or.
163163 let test = || Ok ( ensure ! ( S + move |( ) | 1 == 1 ) ) ;
164- assert_err ( test, "Condition failed: `S + ( move |()| 1 == 1) `" ) ;
164+ assert_err ( test, "Condition failed: `S + move |()| 1 == 1`" ) ;
165165
166166 let test = || Ok ( ensure ! ( S + |( ) | 1 == 1 ) ) ;
167- assert_err ( test, "Condition failed: `S + ( |()| 1 == 1) `" ) ;
167+ assert_err ( test, "Condition failed: `S + |()| 1 == 1`" ) ;
168168}
169169
170170#[ test]
@@ -224,7 +224,7 @@ fn test_if() {
224224 let test = || Ok ( ensure ! ( if let | 1 | 2 = 2 { } . t( 1 ) == 2 ) ) ;
225225 assert_err (
226226 test,
227- "Condition failed: `if let 1 | 2 = 2 {}.t(1) == 2` (1 vs 2)" ,
227+ "Condition failed: `if let | 1 | 2 = 2 {}.t(1) == 2` (1 vs 2)" ,
228228 ) ;
229229}
230230
@@ -269,7 +269,7 @@ fn test_loop() {
269269 let test = || Ok ( ensure ! ( for | _x in iter:: once( 0 ) { } . t( 1 ) == 2 ) ) ;
270270 assert_err (
271271 test,
272- "Condition failed: `for _x in iter::once(0) {}.t(1) == 2` (1 vs 2)" ,
272+ "Condition failed: `for | _x in iter::once(0) {}.t(1) == 2` (1 vs 2)" ,
273273 ) ;
274274
275275 #[ rustfmt:: skip]
@@ -286,7 +286,7 @@ fn test_match() {
286286 let test = || Ok ( ensure ! ( match 1 == 1 { true => 1 , false => 0 } == 2 ) ) ;
287287 assert_err (
288288 test,
289- "Condition failed: `match 1 == 1 { true => 1, false => 0, } == 2` (1 vs 2)" ,
289+ "Condition failed: `match 1 == 1 { true => 1, false => 0 } == 2` (1 vs 2)" ,
290290 ) ;
291291}
292292
@@ -343,7 +343,7 @@ fn test_path() {
343343 let test = || Ok ( ensure ! ( Error :: msg:: <& str , >. t( 1 ) == 2 ) ) ;
344344 assert_err (
345345 test,
346- "Condition failed: `Error::msg::<&str>.t(1) == 2` (1 vs 2)" ,
346+ "Condition failed: `Error::msg::<&str, >.t(1) == 2` (1 vs 2)" ,
347347 ) ;
348348
349349 let test = || Ok ( ensure ! ( Error :: msg:: <<str as ToOwned >:: Owned >. t( 1 ) == 2 ) ) ;
@@ -362,7 +362,7 @@ fn test_path() {
362362 let test = || Ok ( ensure ! ( Chain :: <' static , >:: new. t( 1 ) == 2 ) ) ;
363363 assert_err (
364364 test,
365- "Condition failed: `Chain::<'static>::new.t(1) == 2` (1 vs 2)" ,
365+ "Condition failed: `Chain::<'static, >::new.t(1) == 2` (1 vs 2)" ,
366366 ) ;
367367
368368 fn f < const I : isize > ( ) { }
@@ -394,7 +394,7 @@ fn test_path() {
394394
395395 #[ rustfmt:: skip]
396396 let test = || Ok ( ensure ! ( E :: U :: <u8 , >>E :: U ) ) ;
397- assert_err ( test, "Condition failed: `E::U::<u8> > E::U` (U vs U)" ) ;
397+ assert_err ( test, "Condition failed: `E::U::<u8, > > E::U` (U vs U)" ) ;
398398
399399 let test = || Ok ( ensure ! ( Generic :: <dyn Debug + Sync > != Generic ) ) ;
400400 assert_err (
@@ -416,7 +416,7 @@ fn test_path() {
416416 } ;
417417 assert_err (
418418 test,
419- "Condition failed: `Generic::<dyn Fn() + ::std::marker::Sync> != Generic` (Generic vs Generic)" ,
419+ "Condition failed: `Generic::<dyn Fn:: () + ::std::marker::Sync> != Generic` (Generic vs Generic)" ,
420420 ) ;
421421}
422422
0 commit comments