mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
internal: add implicit Sized
bounds to type parameters.
This commit is contained in:
parent
8a8431133e
commit
3981373b93
7 changed files with 99 additions and 21 deletions
|
@ -93,7 +93,7 @@ impl HirDisplay for Function {
|
|||
} else {
|
||||
match &*data.ret_type {
|
||||
TypeRef::ImplTrait(bounds) => match bounds[0].as_ref() {
|
||||
TypeBound::Path(path) => {
|
||||
TypeBound::Path(path, _) => {
|
||||
path.segments().iter().last().unwrap().args_and_bindings.unwrap().bindings
|
||||
[0]
|
||||
.type_ref
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue