rust/tests/ui/dst
Esteban Küber f6767f7a68 Detect * operator on !Sized expression
```
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 are always `Sized`, even if they point to unsized data; consider not dereferencing the expression
   |
LL -     let x = *"";
LL +     let x = "";
   |
```
2024-08-08 17:35:40 +00:00
..
dst-bad-assign-2.rs
dst-bad-assign-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dst-bad-assign-3.rs Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
dst-bad-assign-3.stderr On E0308 involving dyn Trait, mention trait objects 2024-01-24 16:32:24 +00:00
dst-bad-assign.rs Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
dst-bad-assign.stderr On E0308 involving dyn Trait, mention trait objects 2024-01-24 16:32:24 +00:00
dst-bad-coerce1.rs
dst-bad-coerce1.stderr Point out if a local trait has no implementations 2023-09-10 21:20:36 +00:00
dst-bad-coerce2.rs
dst-bad-coerce2.stderr
dst-bad-coerce3.rs
dst-bad-coerce3.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
dst-bad-coerce4.rs Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
dst-bad-coerce4.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
dst-bad-coercions.rs
dst-bad-coercions.stderr
dst-bad-deep-2.rs
dst-bad-deep-2.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
dst-bad-deep.rs
dst-bad-deep.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
dst-index.rs
dst-index.stderr
dst-object-from-unsized-type.rs
dst-object-from-unsized-type.stderr change std::marker::Sized to just Sized 2023-06-15 12:01:38 +02:00
dst-rvalue.rs
dst-rvalue.stderr Detect * operator on !Sized expression 2024-08-08 17:35:40 +00:00
dst-sized-trait-param.rs
dst-sized-trait-param.stderr review comment: change wording 2024-02-01 03:31:03 +00:00
issue-90528-unsizing-not-suggestion-110063.rs Fix invalid slice coercion suggestion reported in turbofish 2023-08-01 12:34:31 +02:00
issue-90528-unsizing-not-suggestion-110063.stderr Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
issue-90528-unsizing-suggestion-1.rs Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-90528-unsizing-suggestion-1.stderr Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-90528-unsizing-suggestion-2.rs Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-90528-unsizing-suggestion-2.stderr Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-90528-unsizing-suggestion-3.rs Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-90528-unsizing-suggestion-3.stderr Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-90528-unsizing-suggestion-4.rs Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-90528-unsizing-suggestion-4.stderr Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-113447.rs Provide better suggestions for T == &T and &T == T 2023-12-16 19:56:50 -08:00
issue-113447.stderr Provide better suggestions for T == &T and &T == T 2023-12-16 19:56:50 -08:00