Skip to content

minor: filter default bounds for introduce_named_type_parameter#22148

Open
A4-Tacks wants to merge 1 commit intorust-lang:masterfrom
A4-Tacks:filter-default-bounds
Open

minor: filter default bounds for introduce_named_type_parameter#22148
A4-Tacks wants to merge 1 commit intorust-lang:masterfrom
A4-Tacks:filter-default-bounds

Conversation

@A4-Tacks
Copy link
Copy Markdown
Member

Example

fn foo(bar: $0impl Sized) {}

Before this PR

fn foo<$0S: Sized>(bar: S) {}

After this PR

fn foo<$0S>(bar: S) {}

Example
---
```rust
fn foo(bar: $0impl Sized) {}
```

**Before this PR**

```rust
fn foo<$0S: Sized>(bar: S) {}
```

**After this PR**

```rust
fn foo<$0S>(bar: S) {}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 23, 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.

3 participants