diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-09-27 00:45:02 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-09-27 00:45:02 +0000 |
| commit | c7d171d7714e1645c35c81b0631c6aadc969c086 (patch) | |
| tree | 04b3cef4542041125ff49a631a503296e401d6cf /compiler/rustc_codegen_gcc | |
| parent | 648d024a7859e1ab7fdffe5e419b6e35ccb16a4a (diff) | |
| download | rust-c7d171d7714e1645c35c81b0631c6aadc969c086.tar.gz rust-c7d171d7714e1645c35c81b0631c6aadc969c086.zip | |
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
