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
trivial-bounds-inconsistent-associated-functions.rs
trivial-bounds-inconsistent-copy-reborrow.rs
trivial-bounds-inconsistent-copy-reborrow.stderr
trivial-bounds-inconsistent-copy.rs
trivial-bounds-inconsistent-copy.stderr
trivial-bounds-inconsistent-projection-error.rs
trivial-bounds-inconsistent-projection-error.stderr
trivial-bounds-inconsistent-projection.rs
trivial-bounds-inconsistent-projection.stderr
trivial-bounds-inconsistent-sized.rs
trivial-bounds-inconsistent-sized.stderr
trivial-bounds-inconsistent-well-formed.rs
trivial-bounds-inconsistent-well-formed.stderr
trivial-bounds-inconsistent.rs
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