rust/tests/ui/trait-bounds
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
..
apit-unsized.rs
apit-unsized.stderr On implicit Sized bound on fn argument, point at type instead of pattern 2024-09-27 00:45:02 +00:00
argument-with-unnecessary-method-call.rs
argument-with-unnecessary-method-call.stderr
bad-suggestionf-for-repeated-unsized-bound-127441.rs Fix malformed suggestion for repeated maybe unsized bounds 2024-07-14 17:46:25 +05:30
bad-suggestionf-for-repeated-unsized-bound-127441.stderr On implicit Sized bound on fn argument, point at type instead of pattern 2024-09-27 00:45:02 +00:00
enum-unit-variant-trait-bound.rs
enum-unit-variant-trait-bound.stderr
ice-unsized-struct-arg-issue2-121424.rs
ice-unsized-struct-arg-issue2-121424.stderr
ice-unsized-struct-arg-issue-121612.rs
ice-unsized-struct-arg-issue-121612.stderr
ice-unsized-tuple-const-issue-121443.rs
ice-unsized-tuple-const-issue-121443.stderr
impl-bound-with-references-error.rs
impl-bound-with-references-error.stderr
impl-derived-implicit-sized-bound-2.rs
impl-derived-implicit-sized-bound-2.stderr
impl-derived-implicit-sized-bound.rs
impl-derived-implicit-sized-bound.stderr
impl-missing-where-clause-lifetimes-from-trait.rs
impl-missing-where-clause-lifetimes-from-trait.stderr
issue-75961.rs
issue-82038.rs
issue-82038.stderr
issue-93008.rs
issue-94680.rs
issue-94999.rs
issue-95640.rs
issue-119530-sugg-from-fn.rs
issue-119530-sugg-from-fn.stderr
mismatch-fn-trait.rs
mismatch-fn-trait.stderr
restrict-assoc-type-of-generic-bound.fixed
restrict-assoc-type-of-generic-bound.rs
restrict-assoc-type-of-generic-bound.stderr
shadowed-path-in-trait-bound-suggestion.fixed
shadowed-path-in-trait-bound-suggestion.rs
shadowed-path-in-trait-bound-suggestion.stderr
suggest-maybe-sized-bound.rs
suggest-maybe-sized-bound.stderr
super-assoc-mismatch.rs
super-assoc-mismatch.stderr
unsized-bound.rs
unsized-bound.stderr