It's out of date.
Or is this statement there to want you not take the address of a string literal and attempt to write it via a pointer?
Even then you have to actively try and break the type system auto p = cast(char*) "foo".ptr; And if you remove the brakes from your car, you shouldn't be terribly confused when you plow into a wall at 100 km/h. The statement should probably be removed or modified.