]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-64662.rs
Rollup merge of #67255 - tuxillo:remove-i686-unknown-dragonfly, r=alexcrichton
[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() {}