Change error to debug
IMO this is a better workaround than using the old-style error-pattern: syntax :-)
This commit is contained in:
parent
39c05b4b65
commit
613deb0312
1 changed files with 1 additions and 2 deletions
|
@ -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 `()`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue