2025-01-03 05:01:14 +00:00
|
|
|
// Make sure we don't ICE in `normalize_erasing_regions` when normalizing
|
|
|
|
// an associated type in an impl with unconstrained non-lifetime params.
|
|
|
|
|
2025-01-03 05:22:14 +00:00
|
|
|
//@ revisions: current next
|
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
|
|
|
//@[next] compile-flags: -Znext-solver
|
|
|
|
|
2025-01-03 05:01:14 +00:00
|
|
|
struct Thing;
|
|
|
|
|
|
|
|
pub trait Every {
|
|
|
|
type Assoc;
|
|
|
|
}
|
|
|
|
impl<T: ?Sized> Every for Thing {
|
|
|
|
//~^ ERROR the type parameter `T` is not constrained
|
|
|
|
type Assoc = T;
|
|
|
|
}
|
|
|
|
|
|
|
|
static I: <Thing as Every>::Assoc = 3;
|
|
|
|
|
|
|
|
fn main() {}
|