by andreaferretti · 10y ago · 0 comments
Really, these kind of checks belong to the frontend.
I'm not saying Rust's compile errors should ever be shown to the user. I don't think that's what the OP is suggesting either. If rustc errors you should emit an internal compiler error, because your higher level compiler should be producing valid rust code.