rust/tests/ui/unsized
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
..
box-instead-of-dyn-fn.rs
box-instead-of-dyn-fn.stderr More accurate suggestion for -> Box<dyn Trait> or -> impl Trait 2024-07-19 19:39:37 +00:00
issue-23649-1.rs Move tests 2024-04-07 17:38:07 -03:00
issue-23649-2.rs Move tests 2024-04-07 17:38:07 -03:00
issue-23649-3.rs Move tests 2024-04-07 17:38:07 -03:00
issue-30355.rs
issue-30355.stderr
issue-40231-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-40231-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-71659.current.stderr Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
issue-71659.next.stderr Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
issue-71659.rs Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
issue-75707.rs
issue-75707.stderr
issue-75899-but-gats.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-75899.rs Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
issue-91801.rs
issue-91801.stderr More accurate suggestion for -> Box<dyn Trait> or -> impl Trait 2024-07-19 19:39:37 +00:00
issue-91803.rs
issue-91803.stderr More accurate suggestion for -> Box<dyn Trait> or -> impl Trait 2024-07-19 19:39:37 +00:00
issue-97732.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-115203.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-115203.stderr
issue-115809.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-115809.stderr
maybe-bounds-where-cpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
maybe-bounds-where.rs
maybe-bounds-where.stderr Support ?Trait bounds in supertraits and dyn Trait under a feature gate 2024-07-25 20:53:33 +03:00
param-mentioned-by-different-field.rs
param-mentioned-by-different-field.stderr
return-unsized-from-trait-method.rs
return-unsized-from-trait-method.stderr
unchanged-param.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsize-coerce-multiple-adt-params.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsized2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsized3-rpass.rs [ACP 362] genericize ptr::from_raw_parts 2024-05-29 09:34:16 -07:00
unsized3.rs
unsized3.stderr review comment: change wording 2024-02-01 03:31:03 +00:00
unsized5.rs
unsized5.stderr
unsized6.rs
unsized6.stderr Detect * operator on !Sized expression 2024-08-08 17:35:40 +00:00
unsized7.rs
unsized7.stderr review comment: change wording 2024-02-01 03:31:03 +00:00
unsized-bare-typaram.rs
unsized-bare-typaram.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
unsized-enum2.rs
unsized-enum2.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
unsized-enum.rs
unsized-enum.stderr review comment: change wording 2024-02-01 03:31:03 +00:00
unsized-fn-arg.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsized-fn-arg.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsized-fn-arg.stderr
unsized-fn-param.rs
unsized-fn-param.stderr
unsized-inherent-impl-self-type.rs
unsized-inherent-impl-self-type.stderr review comment: change wording 2024-02-01 03:31:03 +00:00
unsized-struct.rs
unsized-struct.stderr review comment: change wording 2024-02-01 03:31:03 +00:00
unsized-trait-impl-self-type.rs
unsized-trait-impl-self-type.stderr review comment: change wording 2024-02-01 03:31:03 +00:00
unsized-trait-impl-trait-arg.rs
unsized-trait-impl-trait-arg.stderr review comment: change wording 2024-02-01 03:31:03 +00:00
unsized-tuple-impls.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsized.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00