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
Because check and relative take an alias to a function but are marked as @trusted, they essentially pretend to be @safe without actually enforcing the @safe guarantees.
import unit_threaded.property;
@safeunittest
{
int* ptr;
check!((int a) { *(ptr +256) = 42; return a %2==0; });
}
The text was updated successfully, but these errors were encountered:
Because
checkand relative take analiasto a function but are marked as@trusted, they essentially pretend to be@safewithout actually enforcing the@safeguarantees.The text was updated successfully, but these errors were encountered: