]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-64662.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / 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() {}