Files
rust/tests/ui/issues
Trevor Gross 00308920ae Rollup merge of #128467 - estebank:unsized-args, r=cjgillot
Detect `*` operator on `!Sized` expression

The suggestion is new:

```
error[E0277]: the size for values of type `str` cannot be known at compilation time
  --> $DIR/unsized-str-in-return-expr-arg-and-local.rs:15:9
   |
LL |     let x = *"";
   |         ^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `str`
   = note: all local variables must have a statically known size
   = help: unsized locals are gated as an unstable feature
help: references to `!Sized` types like `&str` are `Sized`; consider not dereferencing the expression
   |
LL -     let x = *"";
LL +     let x = "";
   |
```

Fix #128199.
2024-08-24 21:03:30 -05:00
..
2024-04-21 15:43:43 -03:00
2024-02-07 10:42:01 +08:00
2024-01-05 10:00:59 +00:00
2024-02-07 10:42:01 +08:00
2024-02-07 10:42:01 +08:00
2024-02-07 10:42:01 +08:00
2024-02-07 10:42:01 +08:00
2024-02-07 10:42:01 +08:00
2023-01-11 14:40:02 -08:00
2024-02-07 10:42:01 +08:00
2024-02-07 10:42:01 +08:00
2024-03-22 06:31:51 +01:00
2023-12-20 22:53:56 -05:00
2024-02-07 10:42:01 +08:00
2024-01-13 12:46:58 -05:00
2024-07-06 14:24:20 +02:00
2023-05-01 16:15:13 +08:00
2024-02-07 10:42:01 +08:00
2023-11-16 17:00:23 +00:00
2023-04-16 11:38:52 +00:00
2023-04-08 21:32:55 +00:00
2024-01-05 10:00:59 +00:00
2024-01-13 12:46:58 -05:00
2023-11-16 17:00:23 +00:00
2024-02-07 10:42:01 +08:00
2024-07-10 17:15:02 -04:00
2024-07-10 17:15:02 -04:00
2024-04-29 14:53:38 +02:00
2023-01-15 19:46:20 +00:00
2023-01-15 19:46:20 +00:00
2024-07-10 16:16:48 +02:00
2024-02-07 10:42:01 +08:00
2023-06-26 08:56:32 +00:00
2024-01-13 12:46:58 -05:00
2023-11-24 21:04:51 +01:00
2024-04-22 18:48:47 +02:00