echo "void main(){}" | dmd -run -c -
and fails with
---
Error: module -c is in file '-c.d' which cannot be read
import path[0] = /usr/include/dlang/dmd
---
I have seen people at my Meetup struggling with this and I was initially also puzzled.
One really needs to know the implementation of mars.d to understand this.