summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-64662.rs
blob: e3a8c85830f73fb2c7db62f91f36bef789fccb4f (plain)
1
2
3
4
5
6
7
8
9
10
enum Foo {
    A = foo(), //~ ERROR: type annotations needed
    B = foo(), //~ ERROR: type annotations needed
}

const fn foo<T>() -> isize {
    0
}

fn main() {}