rust/tests/ui/trivial-bounds
Esteban Küber 10c2fbec24 Suggest .clone() in some move errors
```
error[E0507]: cannot move out of `*x` which is behind a shared reference
  --> $DIR/borrowck-fn-in-const-a.rs:6:16
   |
LL |         return *x
   |                ^^ move occurs because `*x` has type `String`, which does not implement the `Copy` trait
   |
help: consider cloning the value if the performance cost is acceptable
   |
LL -         return *x
LL +         return x.clone()
   |
```
2024-04-11 16:41:41 +00:00
..
issue-73021-impossible-inline.inline.stderr
issue-73021-impossible-inline.no-opt.stderr
issue-73021-impossible-inline.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trivial-bounds-inconsistent-associated-functions.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trivial-bounds-inconsistent-copy-reborrow.rs
trivial-bounds-inconsistent-copy-reborrow.stderr
trivial-bounds-inconsistent-copy.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trivial-bounds-inconsistent-copy.stderr
trivial-bounds-inconsistent-projection-error.rs
trivial-bounds-inconsistent-projection-error.stderr
trivial-bounds-inconsistent-projection.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trivial-bounds-inconsistent-projection.stderr
trivial-bounds-inconsistent-sized.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trivial-bounds-inconsistent-sized.stderr
trivial-bounds-inconsistent-well-formed.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trivial-bounds-inconsistent-well-formed.stderr
trivial-bounds-inconsistent.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trivial-bounds-inconsistent.stderr
trivial-bounds-leak-copy.rs
trivial-bounds-leak-copy.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
trivial-bounds-leak.rs
trivial-bounds-leak.stderr
trivial-bounds-lint.rs
trivial-bounds-lint.stderr
trivial-bounds-object.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00