Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
300901b70509a0af2d971aa6f6104300da24212c
rust/tests/ui/shadowed/shadowed-use-visibility.rs

17 lines
266 B
Rust
Raw Normal View History

Fix a bug in which the visibility of a use declaration defining a name in one namespace (e.g. the value namespace) is overridden by a later use declaration defining the same name in the other namespace (e.g. the type namespace).
2015-12-01 23:06:34 +00:00
mod foo {
pub fn f() {}
use foo as bar;
pub use self::f as bar;
}
mod bar {
resolve: Say "import" when reporting private imports
2020-01-12 16:20:57 +03:00
use foo::bar::f as g; //~ ERROR module import `bar` is private
Revert PR #30324, fixing a bug in which a public glob import can make preceding imports public (fixes #30159).
2015-12-18 10:10:31 +00:00
use foo as f;
pub use foo::*;
Fix a bug in which the visibility of a use declaration defining a name in one namespace (e.g. the value namespace) is overridden by a later use declaration defining the same name in the other namespace (e.g. the type namespace).
2015-12-01 23:06:34 +00:00
}
resolve: Say "import" when reporting private imports
2020-01-12 16:20:57 +03:00
use bar::f::f; //~ ERROR module import `f` is private
Fix a bug in which the visibility of a use declaration defining a name in one namespace (e.g. the value namespace) is overridden by a later use declaration defining the same name in the other namespace (e.g. the type namespace).
2015-12-01 23:06:34 +00:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3298ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API