]> git.lizzy.rs Git - rust.git/blob - src/test/ui/export-fully-qualified.rs
Auto merge of #87489 - bdalrhm:rustdoc-line-num, r=CraftSpider
[rust.git] / src / test / ui / export-fully-qualified.rs
1 // In this test baz isn't resolved when called as foo.baz even though
2 // it's called from inside foo. This is somewhat surprising and may
3 // want to change eventually.
4
5 mod foo {
6     pub fn bar() { foo::baz(); } //~ ERROR failed to resolve: use of undeclared crate or module `foo`
7
8     fn baz() { }
9 }
10
11 fn main() { }