summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/crate-or-module-typo.stderr
blob: 9ece31e76f005ed799c69aee26790e1a17d577f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
error[E0433]: failed to resolve: use of undeclared crate or module `st`
  --> $DIR/crate-or-module-typo.rs:3:5
   |
LL | use st::cell::Cell;
   |     ^^ use of undeclared crate or module `st`
   |
help: there is a crate or module with a similar name
   |
LL | use std::cell::Cell;
   |     ~~~

error[E0432]: unresolved import `bas`
  --> $DIR/crate-or-module-typo.rs:11:5
   |
LL | use bas::bar;
   |     ^^^ use of undeclared crate or module `bas`
   |
help: there is a crate or module with a similar name
   |
LL | use bar::bar;
   |     ~~~

error[E0433]: failed to resolve: use of undeclared crate or module `st`
  --> $DIR/crate-or-module-typo.rs:14:10
   |
LL |     bar: st::cell::Cell<bool>
   |          ^^ use of undeclared crate or module `st`
   |
help: there is a crate or module with a similar name
   |
LL |     bar: std::cell::Cell<bool>
   |          ~~~
help: consider importing one of these items
   |
LL + use core::cell;
   |
LL + use std::cell;
   |
help: if you import `cell`, refer to it directly
   |
LL -     bar: st::cell::Cell<bool>
LL +     bar: cell::Cell<bool>
   |

error[E0433]: failed to resolve: use of undeclared crate or module `bar`
  --> $DIR/crate-or-module-typo.rs:6:20
   |
LL |     pub fn bar() { bar::baz(); }
   |                    ^^^ use of undeclared crate or module `bar`

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.