diff options
Diffstat (limited to 'tests/ui/resolve/crate-in-paths.rs')
-rw-r--r-- | tests/ui/resolve/crate-in-paths.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/resolve/crate-in-paths.rs b/tests/ui/resolve/crate-in-paths.rs new file mode 100644 index 000000000..7ebd25918 --- /dev/null +++ b/tests/ui/resolve/crate-in-paths.rs @@ -0,0 +1,10 @@ +// edition:2018 + +mod bar { + pub(crate) struct Foo; +} + +fn main() { + Foo; + //~^ ERROR cannot find value `Foo` in this scope [E0425] +} |