summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/crate-or-module-typo.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/crate-or-module-typo.stderr')
-rw-r--r--tests/ui/suggestions/crate-or-module-typo.stderr16
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/ui/suggestions/crate-or-module-typo.stderr b/tests/ui/suggestions/crate-or-module-typo.stderr
index 5e7a7685a..9ece31e76 100644
--- a/tests/ui/suggestions/crate-or-module-typo.stderr
+++ b/tests/ui/suggestions/crate-or-module-typo.stderr
@@ -30,17 +30,23 @@ 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`
- |
-help: consider importing this module
- |
-LL + use crate::bar;
- |
error: aborting due to 4 previous errors