mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
18 lines
357 B
Rust
18 lines
357 B
Rust
// compile-flags: -Ztrait-solver=next
|
|
// 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)]
|
|
|
|
type Tait = impl Sized;
|
|
type Tait2 = impl Sized;
|
|
|
|
fn mk<T>() -> T { todo!() }
|
|
|
|
fn main() {
|
|
let x: Tait = 1u32;
|
|
let y: Tait2 = x;
|
|
}
|