Format error and typeof types (#4416)

* Add a test for #4357

* Format error and typeof types
This commit is contained in:
Seiichi Uchida 2020-09-09 12:52:52 +09:00 committed by Caleb Cartwright
parent c536d80dc1
commit 0d022d08d8
3 changed files with 21 additions and 2 deletions

View file

@ -166,3 +166,9 @@ impl<T: ? const Trait> Foo<T> {
Self(t)
}
}
// #4357
type T = typeof(
1);
impl T for .. {
}

View file

@ -177,3 +177,7 @@ impl<T: ?const Trait> Foo<T> {
Self(t)
}
}
// #4357
type T = typeof(1);
impl T for .. {}