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
So far I have not been able to find a way to avoid the user passing in &'static str... short of disallowing &str altogether which will seriously break code.
That's because, to the Rust compiler, lifetimes do not form part of a type's ID. Therefore, it merrily thinks that &'static str and &str are the same type.
Consider the following example:
rhai v1.19.0
The text was updated successfully, but these errors were encountered: