about summary refs log tree commit diff
path: root/tests/ui/type-alias-impl-trait/duplicate-lifetimes-from-rpit-containing-tait2.rs
blob: f0674fb0c97e15bd5fa93709ddbc9b86fb11ce8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ check-pass
//@ edition: 2021

#![feature(type_alias_impl_trait)]

struct Foo<'a>(&'a ());

impl<'a> Foo<'a> {
    async fn new() -> () {
        type T = impl Sized;
        let _: T = ();
    }
}

fn main() {}