diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-05-02 13:44:51 +0200 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-05-02 18:09:31 +0200 |
| commit | 3cc172074a1ed94aa90372360688a000b47e6946 (patch) | |
| tree | a547f7ac451c40c82168ad7f58c5254e2c629e7d /tests/ui/derives/deriving-with-repr-packed-move-errors.rs | |
| parent | 867b4c9e489c71246915ebe3e1ceddef66d760a3 (diff) | |
| download | rust-3cc172074a1ed94aa90372360688a000b47e6946.tar.gz rust-3cc172074a1ed94aa90372360688a000b47e6946.zip | |
collateral damage in derive tests, improves errors by not refering to implementation details
Diffstat (limited to 'tests/ui/derives/deriving-with-repr-packed-move-errors.rs')
| -rw-r--r-- | tests/ui/derives/deriving-with-repr-packed-move-errors.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/ui/derives/deriving-with-repr-packed-move-errors.rs b/tests/ui/derives/deriving-with-repr-packed-move-errors.rs index ffeb02d78b8..17aa750332c 100644 --- a/tests/ui/derives/deriving-with-repr-packed-move-errors.rs +++ b/tests/ui/derives/deriving-with-repr-packed-move-errors.rs @@ -11,15 +11,15 @@ use std::cmp::Ordering; #[repr(packed)] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Default)] struct StructA(String); -//~^ ERROR: cannot move out of `self` which is behind a shared reference -//~| ERROR: cannot move out of `self` which is behind a shared reference -//~| ERROR: cannot move out of `other` which is behind a shared reference -//~| ERROR: cannot move out of `self` which is behind a shared reference -//~| ERROR: cannot move out of `other` which is behind a shared reference -//~| ERROR: cannot move out of `self` which is behind a shared reference -//~| ERROR: cannot move out of `other` which is behind a shared reference -//~| ERROR: cannot move out of `self` which is behind a shared reference -//~| ERROR: cannot move out of `self` which is behind a shared reference +//~^ ERROR: cannot move out of a shared reference [E0507] +//~| ERROR: cannot move out of a shared reference [E0507] +//~| ERROR: cannot move out of a shared reference [E0507] +//~| ERROR: cannot move out of a shared reference [E0507] +//~| ERROR: cannot move out of a shared reference [E0507] +//~| ERROR: cannot move out of a shared reference [E0507] +//~| ERROR: cannot move out of a shared reference [E0507] +//~| ERROR: cannot move out of a shared reference [E0507] +//~| ERROR: cannot move out of a shared reference [E0507] // Unrelated impl: additinal diagnostic should NOT be emitted |
