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 3df9afc commit 577d2cfCopy full SHA for 577d2cf
src/test/rustdoc-ui/issue-102986.rs
@@ -0,0 +1,4 @@
1
+struct Struct {
2
+ y: (typeof("hey"),),
3
+ //~^ `typeof` is a reserved keyword but unimplemented
4
+}
src/test/rustdoc-ui/issue-102986.stderr
@@ -0,0 +1,14 @@
+error[E0516]: `typeof` is a reserved keyword but unimplemented
+ --> $DIR/issue-102986.rs:2:9
+ |
+LL | y: (typeof("hey"),),
5
+ | ^^^^^^^^^^^^^ reserved keyword
6
7
+help: consider replacing `typeof(...)` with an actual type
8
9
+LL | y: (&'static str,),
10
+ | ~~~~~~~~~~~~
11
+
12
+error: aborting due to previous error
13
14
+For more information about this error, try `rustc --explain E0516`.
0 commit comments