about summary refs log tree commit diff
path: root/src/test/ui/use
diff options
context:
space:
mode:
authormibac138 <5672750+mibac138@users.noreply.github.com>2020-05-19 22:12:41 +0200
committermibac138 <5672750+mibac138@users.noreply.github.com>2020-05-19 22:12:41 +0200
commitaaeea7ffc36cd705116bf45f0479e51788ae33c5 (patch)
treeed1fb298bef2dcd74d66a356b33c6cdc627acf90 /src/test/ui/use
parentd190e10f74afbe7edb5755bb0e0825450ea6c3bb (diff)
downloadrust-aaeea7ffc36cd705116bf45f0479e51788ae33c5.tar.gz
rust-aaeea7ffc36cd705116bf45f0479e51788ae33c5.zip
Alter wording for `use foo::self` help
Diffstat (limited to 'src/test/ui/use')
-rw-r--r--src/test/ui/use/use-mod/use-mod-4.stderr8
-rw-r--r--src/test/ui/use/use-mod/use-mod-5.stderr4
-rw-r--r--src/test/ui/use/use-mod/use-mod-6.stderr4
3 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/use/use-mod/use-mod-4.stderr b/src/test/ui/use/use-mod/use-mod-4.stderr
index e01c2cbf732..a29bd07ac44 100644
--- a/src/test/ui/use/use-mod/use-mod-4.stderr
+++ b/src/test/ui/use/use-mod/use-mod-4.stderr
@@ -4,11 +4,11 @@ error[E0429]: `self` imports are only allowed within a { } list
 LL | use foo::self;
    |        ^^^^^^
    |
-help: Remove `::self`..
+help: consider importing the module directly
    |
 LL | use foo;
    |       --
-help: ..or add braces around `self`
+help: alternatively, use the multi-path `use` syntax to import `self`
    |
 LL | use foo::{self};
    |          ^    ^
@@ -19,11 +19,11 @@ error[E0429]: `self` imports are only allowed within a { } list
 LL | use std::mem::self;
    |             ^^^^^^
    |
-help: Remove `::self`..
+help: consider importing the module directly
    |
 LL | use std::mem;
    |            --
-help: ..or add braces around `self`
+help: alternatively, use the multi-path `use` syntax to import `self`
    |
 LL | use std::mem::{self};
    |               ^    ^
diff --git a/src/test/ui/use/use-mod/use-mod-5.stderr b/src/test/ui/use/use-mod/use-mod-5.stderr
index 859547fbc4d..ebb71c51293 100644
--- a/src/test/ui/use/use-mod/use-mod-5.stderr
+++ b/src/test/ui/use/use-mod/use-mod-5.stderr
@@ -4,11 +4,11 @@ error[E0429]: `self` imports are only allowed within a { } list
 LL | use foo::bar::self;
    |             ^^^^^^
    |
-help: Remove `::self`..
+help: consider importing the module directly
    |
 LL | use foo::bar;
    |            --
-help: ..or add braces around `self`
+help: alternatively, use the multi-path `use` syntax to import `self`
    |
 LL | use foo::bar::{self};
    |               ^    ^
diff --git a/src/test/ui/use/use-mod/use-mod-6.stderr b/src/test/ui/use/use-mod/use-mod-6.stderr
index 0042325229a..36fdf9c75c7 100644
--- a/src/test/ui/use/use-mod/use-mod-6.stderr
+++ b/src/test/ui/use/use-mod/use-mod-6.stderr
@@ -4,11 +4,11 @@ error[E0429]: `self` imports are only allowed within a { } list
 LL | use foo::bar::self as abc;
    |             ^^^^^^
    |
-help: Remove `::self`..
+help: consider importing the module directly
    |
 LL | use foo::bar as abc;
    |            --
-help: ..or add braces around `self`
+help: alternatively, use the multi-path `use` syntax to import `self`
    |
 LL | use foo::bar::{self as abc};
    |               ^           ^