about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2022-06-07 13:39:21 -0700
committerEsteban Küber <esteban@kuber.com.ar>2022-06-07 13:39:21 -0700
commit8542dd02a8c00bba435efe0bed20bc9bb22e7ec5 (patch)
tree893f7fbe53a65294038ad5bc86e9f6ce84460941 /src
parent357bc27904d4a99c83d4b01272c34e0e54934fa5 (diff)
Use more targeted suggestion when confusing i8 with std::i8
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/suggestions/suggest-std-when-using-type.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/suggestions/suggest-std-when-using-type.stderr b/src/test/ui/suggestions/suggest-std-when-using-type.stderr
index 4255281d9a7..2840fa121a7 100644
--- a/src/test/ui/suggestions/suggest-std-when-using-type.stderr
+++ b/src/test/ui/suggestions/suggest-std-when-using-type.stderr
@@ -7,7 +7,7 @@ LL |     let pi = f32::consts::PI;
 help: you are looking for the module in `std`, not the primitive type
    |
 LL |     let pi = std::f32::consts::PI;
-   |              ~~~~~~~~~~~~~~~~
+   |              +++++
 
 error[E0599]: no function or associated item named `from_utf8` found for type `str` in the current scope
   --> $DIR/suggest-std-when-using-type.rs:5:14
@@ -18,7 +18,7 @@ LL |         str::from_utf8(bytes)
 help: you are looking for the module in `std`, not the primitive type
    |
 LL |         std::str::from_utf8(bytes)
-   |         ~~~~~~~~~~~~~~~~~~~
+   |         +++++
 
 error: aborting due to 2 previous errors