rust/tests/ui/consts/issue-64662.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
165 B
Rust
Raw Normal View History

2019-09-30 10:38:08 -05:00
enum Foo {
A = foo(), //~ ERROR: type annotations needed
B = foo(), //~ ERROR: type annotations needed
}
const fn foo<T>() -> isize {
0
}
fn main() {}