Skip to content

Commit 613deb0

Browse files
committed
Change error to debug
IMO this is a better workaround than using the old-style error-pattern: syntax :-)
1 parent 39c05b4 commit 613deb0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// error-pattern:cannot index a value of type `()`
21
fn main() {
32
let z = ();
4-
log(error, z[0]);
3+
log(debug, z[0]); //! ERROR cannot index a value of type `()`
54
}

0 commit comments

Comments
 (0)