You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not completely sure about this, but it was strange to get a compiler error when trying to do:
const re: Regex = regex!("42");
The error message is (copied from the plapen):
<anon>:8:19: 8:32 error: constants cannot refer to other statics, insert an intermediate constant instead
<anon>:8 const re: Regex = regex!("42");
^~~~~~~~~~~~~
<anon>:1:1: 12:1 note: in expansion of regex!
<anon>:8:19: 8:32 note: expansion site
error: aborting due to previous error
Shouldn't this work?
The text was updated successfully, but these errors were encountered:
I am not completely sure about this, but it was strange to get a compiler error when trying to do:
The error message is (copied from the plapen):
Shouldn't this work?
The text was updated successfully, but these errors were encountered: