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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73021-impossible-inline.no-opt.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial-bounds-inconsistent-copy-reborrow.stderr tweak "make mut" spans (No. 2) 2023-05-05 22:40:05 +12:00
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 Adjust tests for new drop and forget lints 2023-05-10 19:36:02 +02:00
trivial-bounds-inconsistent-projection-error.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial-bounds-inconsistent-projection-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial-bounds-inconsistent.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trivial-bounds-inconsistent.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial-bounds-leak-copy.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial-bounds-leak-copy.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
trivial-bounds-leak.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial-bounds-leak.stderr Point out if a local trait has no implementations 2023-09-10 21:20:36 +00:00
trivial-bounds-lint.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial-bounds-lint.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial-bounds-object.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00