Closed
Description
Problem
Using import globbing in a test module results in a very confusing error.
Code
#![feature(globs)]
mod test {
use super::*;
#[test]
fn test(){}
}
Output
$ rustc --test test.rs
test.rs:4:9: 4:18 error: import conflicts with type in this module
test.rs:4 use super::*;
^~~~~~~~~
test.rs:1:1: 1:1 note: note conflicting type here
test.rs:1 #![feature(globs)]
^
error: aborting due to previous error
After some digging, it turns out the conflict is on __test_reexports
. I plan to submit a PR to at least print the name of the conflicting import in the above error message so there's something to go on.
Metadata
Metadata
Assignees
Labels
No labels