1
Fork 0

Change error to debug

IMO this is a better workaround than using the old-style
error-pattern: syntax :-)
This commit is contained in:
Tim Chevalier 2012-06-20 18:50:13 -07:00
parent 39c05b4b65
commit 613deb0312

View file

@ -1,5 +1,4 @@
// error-pattern:cannot index a value of type `()`
fn main() {
let z = ();
log(error, z[0]);
log(debug, z[0]); //! ERROR cannot index a value of type `()`
}