diff options
| author | Jubilee <workingjubilee@gmail.com> | 2024-09-26 22:20:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-26 22:20:57 -0700 |
| commit | b463bd1f27a4a9175374d685dc4186598fe4aff8 (patch) | |
| tree | 008a966bf310c21f71a5bdb39cbb1bd9a614e74b /compiler/rustc_codegen_gcc | |
| parent | 6b0c897499202997f84ee71860c3f974aeed7ba8 (diff) | |
| parent | c7d171d7714e1645c35c81b0631c6aadc969c086 (diff) | |
| download | rust-b463bd1f27a4a9175374d685dc4186598fe4aff8.tar.gz rust-b463bd1f27a4a9175374d685dc4186598fe4aff8.zip | |
Rollup merge of #130912 - estebank:point-at-arg-type, r=compiler-errors
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
```
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
