summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias/issue-62364-self-ty-arg.rs
blob: bebb4a9021aab4795cd32311c3c53c85059e97f9 (plain)
1
2
3
4
5
6
7
8
struct Struct<P1> {
    field: P1,
}

type Alias<'a> = Struct<&'a Self>;
//~^ ERROR cannot find type `Self` in this scope [E0411]

fn main() {}