Question: Or is this a rust-analyzer bug? I tried to Google but couldn’t find anything. Answer: The reason that top-level or-patterns aren’t allowed is because it would cause certain macro_rules! macros to break. The pattern in a let expression should ...
Question: Here is my project structre: in sub_mod.rs, cargo won’t warn me if I import sub_folder like: but I cannot do but in main.rs it works!! Is there a gentler way in sub_mod.rs to import sub_folder? Answer: You should almost ...