]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-64662.rs
Rollup merge of #106718 - lcnr:solver-cycles, r=compiler-errors
[rust.git] / tests / ui / consts / issue-64662.rs
1 enum Foo {
2     A = foo(), //~ ERROR: type annotations needed
3     B = foo(), //~ ERROR: type annotations needed
4 }
5
6 const fn foo<T>() -> isize {
7     0
8 }
9
10 fn main() {}