Skip to content

fix: no generate with default assoc item#22488

Open
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:blanket-ignore-default
Open

fix: no generate with default assoc item#22488
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:blanket-ignore-default

Conversation

@A4-Tacks
Copy link
Copy Markdown
Member

  • And remove bounds for associated type

Example

trait $0Foo {
    type Item: ?Sized;

    const N: usize = 3;
}

Before this PR

impl<T: ?Sized> Foo for $0T {
    type Item: ?Sized;

    const N: usize = 3;
}

After this PR

impl<T: ?Sized> Foo for $0T {
    type Item;
}

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 29, 2026
- And remove bounds for associated type

Example
---
```rust
trait $0Foo {
    type Item: ?Sized;

    const N: usize = 3;
}
```

**Before this PR**

```rust
impl<T: ?Sized> Foo for $0T {
    type Item: ?Sized;

    const N: usize = 3;
}
```

**After this PR**

```rust
impl<T: ?Sized> Foo for $0T {
    type Item;
}
```
@A4-Tacks A4-Tacks force-pushed the blanket-ignore-default branch from e0b4341 to 2381dd5 Compare May 29, 2026 21:46
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