Skip to content

feat: hover show type param bounds#22609

Open
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:hover-bounds
Open

feat: hover show type param bounds#22609
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:hover-bounds

Conversation

@A4-Tacks

@A4-Tacks A4-Tacks commented Jun 18, 2026

Copy link
Copy Markdown
Member

Close #11099

Example

trait Bound {}
fn foo<T: Bound>(param: T) {
    let _ = param$0;
}

Before this PR

*param*

param: T

After this PR

*param*

param: T
where
    T: Bound

Example
---
```rust
trait Bound {}
fn foo<T: Bound>(param: T) {
    let _ = param$0;
}
```

**Before this PR**

```rust
*param*

param: T
```

**After this PR**

```rust
*param*

param: T
where
    T: Bound
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show bounds on variable with generic type

2 participants