mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Add test for issue 102986
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
struct Struct {
|
||||
y: (typeof("hey"),),
|
||||
//~^ `typeof` is a reserved keyword but unimplemented
|
||||
}
|
||||
@@ -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`.
|
||||
Reference in New Issue
Block a user