rustc

File Read

Context: sudo, unprivileged

rustc /path/to/input-file

File Write

Context: sudo, unprivileged

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

Inherit

Context: sudo, unprivileged

rustc --explain E0001