]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/export-fully-qualified.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / 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() { }