about summary refs log tree commit diff
path: root/src/test/ui/suggestions
diff options
context:
space:
mode:
authoryukang <moorekang@gmail.com>2022-09-18 15:35:21 +0800
committeryukang <moorekang@gmail.com>2022-12-03 22:41:12 +0800
commitfb004e9a95793b7672d55b2984d65d4ac00a3cfc (patch)
tree033e66ea5bd1771498488df7520e37976531d7e3 /src/test/ui/suggestions
parent28a53cdb4695b71cb9ee39959df88542056479cd (diff)
downloadrust-fb004e9a95793b7672d55b2984d65d4ac00a3cfc.tar.gz
rust-fb004e9a95793b7672d55b2984d65d4ac00a3cfc.zip
fix #101749, use . instead of :: when accessing a method of an object
Diffstat (limited to 'src/test/ui/suggestions')
-rw-r--r--src/test/ui/suggestions/crate-or-module-typo.stderr12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/suggestions/crate-or-module-typo.stderr b/src/test/ui/suggestions/crate-or-module-typo.stderr
index e8250c9fa5f..98b88b4fb92 100644
--- a/src/test/ui/suggestions/crate-or-module-typo.stderr
+++ b/src/test/ui/suggestions/crate-or-module-typo.stderr
@@ -20,12 +20,6 @@ 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 `bar`
-  --> $DIR/crate-or-module-typo.rs:6:20
-   |
-LL |     pub fn bar() { bar::baz(); }
-   |                    ^^^ use of undeclared crate or module `bar`
-
 error[E0433]: failed to resolve: use of undeclared crate or module `st`
   --> $DIR/crate-or-module-typo.rs:14:10
    |
@@ -37,6 +31,12 @@ help: there is a crate or module with a similar name
 LL |     bar: std::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.