We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b92a7b7 commit bcd3942Copy full SHA for bcd3942
src/test/compile-fail/index_message.rs
@@ -1,4 +1,5 @@
1
+// error-pattern:cannot index a value of type `()`
2
fn main() {
3
let z = ();
- log(error, z[0]); //! ERROR cannot index a value of type `()`
4
+ log(error, z[0]);
5
}
0 commit comments