Skip to content

Commit

Permalink
Add test for issue 102986
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Oct 13, 2022
1 parent 3df9afc commit 577d2cf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/rustdoc-ui/issue-102986.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
struct Struct {
y: (typeof("hey"),),
//~^ `typeof` is a reserved keyword but unimplemented
}
14 changes: 14 additions & 0 deletions src/test/rustdoc-ui/issue-102986.stderr
Original file line number Diff line number Diff line change
@@ -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`.

0 comments on commit 577d2cf

Please sign in to comment.