rust/tests/ui/inference
Esteban Küber c7d171d771 On implicit Sized bound on fn argument, point at type instead of pattern
Instead of

```
error[E0277]: the size for values of type `(dyn ThriftService<(), AssocType = _> + 'static)` cannot be known at compilation time
  --> $DIR/issue-59324.rs:23:20
   |
LL | fn with_factory<H>(factory: dyn ThriftService<()>) {}
   |                    ^^^^^^^ doesn't have a size known at compile-time
```

output

```
error[E0277]: the size for values of type `(dyn ThriftService<(), AssocType = _> + 'static)` cannot be known at compilation time
  --> $DIR/issue-59324.rs:23:29
   |
LL | fn with_factory<H>(factory: dyn ThriftService<()>) {}
   |                             ^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
```
2024-09-27 00:45:02 +00:00
..
auxiliary Arbitrary self types v2: pointers feature gate. 2024-08-27 17:32:35 +00:00
need_type_info Relate receiver invariantly in method probe for Mode::Path 2024-09-16 10:55:07 -04:00
ambiguous_type_parameter.rs
ambiguous_type_parameter.stderr
array-len-mismatch.rs
array-len-mismatch.stderr
cannot-infer-async.rs
cannot-infer-async.stderr
cannot-infer-closure-circular.rs
cannot-infer-closure-circular.stderr
cannot-infer-closure.rs
cannot-infer-closure.stderr
cannot-infer-partial-try-return.rs
cannot-infer-partial-try-return.stderr
char-as-str-multi.rs
char-as-str-multi.stderr
char-as-str-single.fixed
char-as-str-single.rs
char-as-str-single.stderr
deref-suggestion.rs
deref-suggestion.stderr
detect-old-time-version-format_description-parse.rs Make the "detect-old-time" UI test more representative 2024-08-29 13:58:43 -07:00
detect-old-time-version-format_description-parse.stderr Make the "detect-old-time" UI test more representative 2024-08-29 13:58:43 -07:00
dont-collect-stmts-from-parent-body.rs
dont-collect-stmts-from-parent-body.stderr
erase-type-params-in-label.rs
erase-type-params-in-label.stderr
hint-closure-signature-119266.rs
hint-closure-signature-119266.stderr
ice-cannot-relate-region-109178.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
ice-cannot-relate-region-109178.stderr
ice-ifer-var-leaked-out-of-rollback-122098.rs
ice-ifer-var-leaked-out-of-rollback-122098.stderr On implicit Sized bound on fn argument, point at type instead of pattern 2024-09-27 00:45:02 +00:00
infer-binary-operand-behind-reference.rs
infer-fn-tail-expr.rs
inference_unstable_featured.rs
inference_unstable_featured.stderr
inference_unstable_forced.rs
inference_unstable_forced.stderr
inference_unstable.rs
inference_unstable.stderr
inference-variable-behind-raw-pointer.rs
inference-variable-behind-raw-pointer.stderr
issue-3743.rs
issue-12028.rs
issue-12028.stderr
issue-28935.rs
issue-36053.rs
issue-70082.rs
issue-70082.stderr
issue-70703.rs
issue-71309.rs
issue-71309.stderr
issue-71584.rs
issue-71584.stderr
issue-71732.rs
issue-71732.stderr
issue-72616.rs
issue-72616.stderr
issue-72690.rs
issue-72690.stderr
issue-80409.compat.stderr
issue-80409.no-compat.stderr
issue-80409.rs
issue-80816.rs
issue-80816.stderr
issue-81522.rs
issue-83606.rs
issue-83606.stderr Const generic parameters aren't bounds, even if we end up erroring because of the bound that binds the parameter's type 2024-06-19 14:58:29 +00:00
issue-86094-suggest-add-return-to-coerce-ret-ty.rs
issue-86094-suggest-add-return-to-coerce-ret-ty.stderr
issue-86162-1.rs
issue-86162-1.stderr
issue-86162-2.rs
issue-86162-2.stderr
issue-103587.rs
issue-103587.stderr
issue-104649.rs
issue-104649.stderr
issue-107090.rs
issue-107090.stderr
issue-113354.fixed
issue-113354.rs
issue-113354.stderr
lambda-infer-unresolved.rs
lub-glb-with-unbound-infer-var.rs
multiple-impl-apply.rs
multiple-impl-apply.stderr
newlambdas-ret-infer2.rs
newlambdas-ret-infer.rs
note-and-explain-ReVar-124973.rs
note-and-explain-ReVar-124973.stderr
order-dependent-cast-inference.rs
order-dependent-cast-inference.stderr
question-mark-type-infer.rs
question-mark-type-infer.stderr
range-type-infer.rs
simple-infer.rs
stmts-as-exp-105431.rs
stmts-as-exp-105431.stderr
str-as-char-butchered.rs
str-as-char-butchered.stderr
str-as-char-non-lit.rs
str-as-char-non-lit.stderr
str-as-char.fixed
str-as-char.rs
str-as-char.stderr
tutorial-suffix-inference-test.rs
tutorial-suffix-inference-test.stderr
type-infer-generalize-ty-var.rs
untyped-primitives.rs