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