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
{{ message }}
Repository navigation
Regression in interaction between 'use' statements, crates, and 'pub use'. #32106
externcrate std;pubuse a::*;pubuse b::*;pubmod a {use std;}pubmod b {use std;}fnmain(){}
Here's the error:
<anon>:9:9: 9:12 error: unresolved import [E0432]
<anon>:9 use std;
^~~
<anon>:9:9: 9:12 help: see the detailed explanation for E0432
<anon>:5:9: 5:12 error: unresolved import [E0432]
<anon>:5 use std;
^~~
<anon>:5:9: 5:12 help: see the detailed explanation for E0432
error: aborting due to 2 previous errors
playpen: application terminated with error code 101
This actually doesn't compile on stable since the explicit extern crate std; conflicts with the implicit, injected version. It does compile on stable without the explicit extern crate std; or with #![no_std].
Activity
alexcrichton commentedon Mar 7, 2016
Might be a dupe of #32089 which is fixed in #32097, but not sure?
cc @jseyfried
jseyfried commentedon Mar 7, 2016
Yeah, this is a dupe of #32089.
This actually doesn't compile on stable since the explicit
extern crate std;conflicts with the implicit, injected version. It does compile on stable without the explicitextern crate std;or with#![no_std].alexcrichton commentedon Mar 7, 2016
Ah ok, closing as a dupe, thanks @jseyfried!