2023-12-14 06:11:28 -06:00
|
|
|
// compile-flags: -Znext-solver
|
2023-05-27 14:27:59 -05:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
// Not exactly sure if this is the inference behavior we *want*,
|
|
|
|
// but it is a side-effect of the lazy normalization of TAITs.
|
|
|
|
|
|
|
|
#![feature(type_alias_impl_trait)]
|
|
|
|
|
2023-06-15 04:41:14 -05:00
|
|
|
fn mk<T>() -> T {
|
|
|
|
todo!()
|
|
|
|
}
|
2023-05-27 14:27:59 -05:00
|
|
|
|
|
|
|
fn main() {
|
2023-06-15 04:41:14 -05:00
|
|
|
type Tait = impl Sized;
|
|
|
|
type Tait2 = impl Sized;
|
2023-05-27 14:27:59 -05:00
|
|
|
let x: Tait = 1u32;
|
|
|
|
let y: Tait2 = x;
|
|
|
|
}
|