"error: target type not found for const cast" triggered by the position of a mod
item or by adding #[deriving(Show)]
#18128
Labels
A-type-system
Area: Type system
STR
Output
rustc --cfg error main.rs
generates the following compiler error:rustc main.rs
compiles successfully.Version
I can trace this behavior back to 0.11
I thought that the position of the items in a crate (except for
use
imports andextern crate
s which must go at the beginning) didn't affect the compiler output. That makes me think this is a bug.The text was updated successfully, but these errors were encountered: