Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 21210: std.traits : isAssignable false positive on disabled copy …
…struct `isAssignable` would previously return `true` for non-copyable types, even though code that tried to use an lvalue would not compile. This behavior was originally found when implementing `-preview=in`. With the new -preview=in check, the const-folding seemed to be a bit too aggressive when an rvalue is passed, meaning that the check might fail (probably due to the code that initialize the temporary).
- Loading branch information