about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2019-09-10 22:35:10 +0100
committervarkor <github@varkor.com>2019-09-11 00:29:35 +0100
commitef62e050624fabc57f17dd6744ff29f79b39e8cd (patch)
tree7c4efc6426d29462432be5512aed6d250997e7e2 /src/test/ui/error-codes
parent14e6947fa4b9a144802869286a937c987d6a3c54 (diff)
downloadrust-ef62e050624fabc57f17dd6744ff29f79b39e8cd.tar.gz
rust-ef62e050624fabc57f17dd6744ff29f79b39e8cd.zip
Make wording less confusing
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0044.rs2
-rw-r--r--src/test/ui/error-codes/E0044.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/error-codes/E0044.rs b/src/test/ui/error-codes/E0044.rs
index a5265e7dc17..9eee9c31d3c 100644
--- a/src/test/ui/error-codes/E0044.rs
+++ b/src/test/ui/error-codes/E0044.rs
@@ -1,7 +1,7 @@
 extern {
     fn sqrt<T>(f: T) -> T;
     //~^ ERROR foreign items may not have type parameters [E0044]
-    //~| HELP use specialization instead of type parameters by replacing them with concrete types
+    //~| HELP replace the type parameters with concrete types
     //~| NOTE can't have type parameters
 }
 
diff --git a/src/test/ui/error-codes/E0044.stderr b/src/test/ui/error-codes/E0044.stderr
index 57c21116b28..e889c167b98 100644
--- a/src/test/ui/error-codes/E0044.stderr
+++ b/src/test/ui/error-codes/E0044.stderr
@@ -4,7 +4,7 @@ error[E0044]: foreign items may not have type parameters
 LL |     fn sqrt<T>(f: T) -> T;
    |     ^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
-   = help: use specialization instead of type parameters by replacing them with concrete types like `u32`
+   = help: replace the type parameters with concrete types like `u32`
 
 error: aborting due to previous error