summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/tait-eq-tait.rs
blob: 70d9dc0eaa8aeca21bdd92750dbd884624b41c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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)]

fn mk<T>() -> T {
    todo!()
}

fn main() {
    type Tait = impl Sized;
    type Tait2 = impl Sized;
    let x: Tait = 1u32;
    let y: Tait2 = x;
}