aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3947.rs
blob: 58ccde6a91dc85cb4e27a91f22a2dcdea95be6f7 (plain)
1
2
3
4
5
6
7
8
9
10
enum _Enum {
    A(),
}

type _E = _Enum;

// { dg-warning "function is never used: '_a'" "" { target *-*-* } .+1 }
const fn _a() -> _Enum {
    _E::A()
}