]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/crate-or-module-typo.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / crate-or-module-typo.rs
1 // edition:2018
2
3 use st::cell::Cell; //~ ERROR failed to resolve: use of undeclared crate or module `st`
4
5 mod bar {
6     pub fn bar() { bar::baz(); } //~ ERROR failed to resolve: use of undeclared crate or module `bar`
7
8     fn baz() {}
9 }
10
11 use bas::bar; //~ ERROR unresolved import `bas`
12
13 struct Foo {
14     bar: st::cell::Cell<bool> //~ ERROR failed to resolve: use of undeclared crate or module `st`
15 }
16
17 fn main() {}