Add test for issue 102986
This commit is contained in:
parent
3df9afcae7
commit
577d2cfbcc
2 changed files with 18 additions and 0 deletions
4
src/test/rustdoc-ui/issue-102986.rs
Normal file
4
src/test/rustdoc-ui/issue-102986.rs
Normal file
|
@ -0,0 +1,4 @@
|
|||
struct Struct {
|
||||
y: (typeof("hey"),),
|
||||
//~^ `typeof` is a reserved keyword but unimplemented
|
||||
}
|
14
src/test/rustdoc-ui/issue-102986.stderr
Normal file
14
src/test/rustdoc-ui/issue-102986.stderr
Normal file
|
@ -0,0 +1,14 @@
|
|||
error[E0516]: `typeof` is a reserved keyword but unimplemented
|
||||
--> $DIR/issue-102986.rs:2:9
|
||||
|
|
||||
LL | y: (typeof("hey"),),
|
||||
| ^^^^^^^^^^^^^ reserved keyword
|
||||
|
|
||||
help: consider replacing `typeof(...)` with an actual type
|
||||
|
|
||||
LL | y: (&'static str,),
|
||||
| ~~~~~~~~~~~~
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0516`.
|
Loading…
Add table
Add a link
Reference in a new issue