summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/different_defining_uses_never_type3.rs
blob: bc827a8f2113a2cc0c3ee35bf86c714d87e0020b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(type_alias_impl_trait)]

type Tait = impl Sized;

struct One;
fn one() -> Tait { One }

struct Two<T>(T);
fn two() -> Tait { Two::<()>(todo!()) }
//~^ ERROR concrete type differs from previous defining opaque type use

fn main() {}