aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3958.rs
blob: 935b512c79dd547201cf2e2830cca9c7e3e375c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-options "-fsyntax-only" }
trait A {
    fn a(&self) -> <Self as A>::X;
}

impl A for u32 {}

fn main() {
    let a: u32 = 0;
    let b: u32 = a.a();
}