mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-08 07:57:40 +00:00
17 lines
362 B
Rust
17 lines
362 B
Rust
![]() |
// Make sure we don't ICE in `normalize_erasing_regions` when normalizing
|
||
|
// an associated type in an impl with unconstrained non-lifetime params.
|
||
|
|
||
|
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() {}
|