diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-04-04 20:41:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-04 20:41:34 +0200 |
| commit | 0c5f8792037e860351ddb7c5cd9e6761d2bba704 (patch) | |
| tree | 6559ee6a4a1bc1aa5e0e1fbe8783bfc11b393d86 /compiler/rustc_codegen_gcc/example/subslice-patterns-const-eval.rs | |
| parent | 4cbc0035776d2d56a58f3d077cfd8d292593c5ed (diff) | |
| parent | 7d7715fbbce214b242cad15e06aea088cdfaa141 (diff) | |
| download | rust-0c5f8792037e860351ddb7c5cd9e6761d2bba704.tar.gz rust-0c5f8792037e860351ddb7c5cd9e6761d2bba704.zip | |
Rollup merge of #95609 - compiler-errors:borrow-unsized-to-dyn, r=nagisa
Suggest borrowing when trying to coerce unsized type into `dyn Trait` A helpful error in response to #95598, since we can't coerce e.g. `&str` into `&dyn Display`, but we can coerce `&&str` into `&dyn Display` :) Not sure if the suggestion message needs some help. Let me know, and I can refine this PR.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/subslice-patterns-const-eval.rs')
0 files changed, 0 insertions, 0 deletions
