Skip to content

fix: correct move bounds when trait with supertraits - #23753

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

A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:move-trait-bounds

Conversation

@A4-Tacks

@A4-Tacks A4-Tacks commented Dec 1, 2026

Copy link
Copy Markdown
Member

Example

trait T<'a: 'static, $0T: u32>: Super {}

Before this PR

trait T<'a, T> where 'a: 'static, T: u32: Super {}

After this PR

trait T<'a, T>: Super where 'a: 'static, T: u32 {}

Example
---
```rust
trait T<'a: 'static, $0T: u32>: Super {}
```

**Before this PR**

```rust
trait T<'a, T> where 'a: 'static, T: u32: Super {}
```

**After this PR**

```rust
trait T<'a, T>: Super where 'a: 'static, T: u32 {}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 1, 2026

This branch has not been deployed

No deployments
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.

2 participants