diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-10-20 22:42:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-20 22:42:39 +0200 |
| commit | cfb424a0447fe940831dfd6778cd2e4291e40724 (patch) | |
| tree | 9509dc33390009acdae91694d3dcf6b4a906fcb6 /src/test | |
| parent | be4816fbf0ffea428d0590945c12e3a61e26a953 (diff) | |
| parent | afd08175de04e890ec542b02d2b72a7b525e86d6 (diff) | |
| download | rust-cfb424a0447fe940831dfd6778cd2e4291e40724.tar.gz rust-cfb424a0447fe940831dfd6778cd2e4291e40724.zip | |
Rollup merge of #103281 - thomcc:long-overdue, r=jyn514
Adjust `transmute{,_copy}` to be clearer about which of `T` and `U` is input vs output
This is essentially a documentation-only change (although it does touch code in an irrelevant way).
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/issues/issue-6458-3.stderr | 6 |
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 |
