about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorThom Chiovoloni <thom@shift.click>2022-10-19 19:07:24 -0700
committerThom Chiovoloni <thom@shift.click>2022-10-19 22:36:14 -0700
commitafd08175de04e890ec542b02d2b72a7b525e86d6 (patch)
tree44bc3b6ce28e986cbe367f24a8ed2d664dac523c /src/test/ui
parent57781b24c54f9548722927ba88c343ff28da94ce (diff)
downloadrust-afd08175de04e890ec542b02d2b72a7b525e86d6.tar.gz
rust-afd08175de04e890ec542b02d2b72a7b525e86d6.zip
Adjust `transmute{,_copy}` to be clearer about which of `T` and `U` is input vs output
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/issues/issue-6458-3.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/issues/issue-6458-3.stderr b/src/test/ui/issues/issue-6458-3.stderr
index 2c3ec1a331f..520efccae51 100644
--- a/src/test/ui/issues/issue-6458-3.stderr
+++ b/src/test/ui/issues/issue-6458-3.stderr
@@ -2,12 +2,12 @@ error[E0282]: type annotations needed
   --> $DIR/issue-6458-3.rs:4:5
    |
 LL |     mem::transmute(0);
-   |     ^^^^^^^^^^^^^^ cannot infer type of the type parameter `U` declared on the function `transmute`
+   |     ^^^^^^^^^^^^^^ cannot infer type of the type parameter `Dst` declared on the function `transmute`
    |
 help: consider specifying the generic arguments
    |
-LL |     mem::transmute::<i32, U>(0);
-   |                   ++++++++++
+LL |     mem::transmute::<i32, Dst>(0);
+   |                   ++++++++++++
 
 error: aborting due to previous error