]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-64662.rs
Rollup merge of #72279 - RalfJung:raw-ref-macros, r=nikomatsakis
[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() {}