while glob imports from an outer/or nested scope do not
mod glob {
pub trait Tr {
fn method(&self) {}
}
impl Tr for () {}
}
// use glob::*; // ok
fn main() {
// use glob::*; // error
trait Tr {} // no method
{
use glob::*; // ok
().method();
}
}
cc @petrochenkov. I want to make sure it's tracked somewhere outside of #144131. Also just really enjoyed learning about this current behavior and wanted to use my test somehow 😁
Originally posted by @lcnr in #144131 (comment)
while glob imports from an outer/or nested scope do not
cc @petrochenkov. I want to make sure it's tracked somewhere outside of #144131. Also just really enjoyed learning about this current behavior and wanted to use my test somehow 😁
Originally posted by @lcnr in #144131 (comment)