Files
rust/tests/rustdoc-ui
Jonathan Brouwer 65153e05af Rollup merge of #158390 - Jamesbarford:fix/trait-solver-const-bounds, r=fmease
Fix: auto trait, const trait bound

Split from https://github.com/rust-lang/rust/pull/158346. I was fiddling about with the code to understand the behaviour of the snippet below, got confused, and somehow fixed something 🤷

```rust
#![feature(const_trait_impl)]

pub struct Outer<T>(Inner<T>);
struct Inner<T>(T);

impl<T> Unpin for Inner<T>
where
    T: const std::default::Default,
{}
```

Fixes https://github.com/rust-lang/rust/issues/149281
2026-06-25 21:18:41 +02:00
..