Check has_typeck_tables before calling typeck_tables_of

This commit is contained in:
Yuki Okushi 2020-02-14 21:49:57 +09:00
parent 21ed50522d
commit be92200af7
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,15 @@
// check-pass
enum _Enum {
A(),
}
type _E = _Enum;
const fn _a() -> _Enum {
_E::A()
}
const _A: _Enum = _a();
fn main() {}