You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may have regressed this at some point during resolve, but this program fails to compile
pubmod a {structA;implA{fnfoo(&self){}}}pubmod b {use a::A;implA{fnbar(&self){}}}fnmain(){}
with the error message
foo.rs:11:9: 11:10 error: found value name used as a type: DefMod(syntax::ast::DefId{crate: 0, node: 19})
foo.rs:11 impl A {
^
task '<unnamed>' failed at 'explicit failure', /Users/alex/code/rust-opt/src/libsyntax/diagnostic.rs:75
task '<unnamed>' failed at 'explicit failure', /Users/alex/code/rust-opt/src/librustc/rustc.rs:396
I'm not sure if we event want to allow this. If we do, this should get fixed. If we don't, then the error message should be improved.
This seems to me like something that should work, but there may be reasons that it shouldn't...
The text was updated successfully, but these errors were encountered:
I may have regressed this at some point during resolve, but this program fails to compile
with the error message
I'm not sure if we event want to allow this. If we do, this should get fixed. If we don't, then the error message should be improved.
This seems to me like something that should work, but there may be reasons that it shouldn't...
The text was updated successfully, but these errors were encountered: