rustc

File Read

The compiler leaks some file lines in the compiler error.

rustc /path/to/input-file

File Write

The comment appears in the compiled program.

echo 'fn main() { println!("DATA"); }' >/path/to/temp-file
rustc /path/to/temp-file -o /path/to/output-file

Inherit

rustc --explain E0001