@@ -107,6 +107,7 @@ fn next3() -> Result<Option<T>, E> {
107107 Ok ( None )
108108}
109109
110+ /*
110111fn test11() -> Result<T, E> {
111112 while let Some(n) = next3()? { }
112113 Err(E)
@@ -121,21 +122,21 @@ fn test12() -> Result<T, E> {
121122
122123fn test13() -> Result<T, E> {
123124 while let Some(n) = next3()? {
124- assert ! ( false ) ; //~ ERROR: the asserted expression might not hold
125+ assert!(false); ERROR: the asserted expression might not hold
125126 }
126127 Err(E)
127128}
128129
129130fn test14() -> Result<T, E> {
130131 while let Some(n) = next3()? { }
131- assert ! ( false ) ; //~ ERROR: the asserted expression might not hold
132+ assert!(false); ERROR: the asserted expression might not hold
132133 Err(E)
133134}
134135
135136fn test15() -> Result<T, E> {
136137 while let Some(n) = next3()? {
137138 body_invariant!(true);
138- assert ! ( false ) ; //~ ERROR: the asserted expression might not hold
139+ assert!(false); ERROR: the asserted expression might not hold
139140 }
140141 Err(E)
141142}
@@ -144,7 +145,7 @@ fn test16() -> Result<T, E> {
144145 while let Some(n) = next3()? {
145146 body_invariant!(true);
146147 }
147- assert ! ( false ) ; //~ ERROR: the asserted expression might not hold
148+ assert!(false); ERROR: the asserted expression might not hold
148149 Err(E)
149150}
150151
@@ -167,6 +168,7 @@ fn test18() -> Result<T, E> {
167168 }
168169 Err(E)
169170}
171+ */
170172
171173fn next4 ( ) -> u32 {
172174 4
0 commit comments