Format error and typeof types (#4416)
* Add a test for #4357 * Format error and typeof types
This commit is contained in:
parent
c536d80dc1
commit
0d022d08d8
3 changed files with 21 additions and 2 deletions
|
|
@ -166,3 +166,9 @@ impl<T: ? const Trait> Foo<T> {
|
|||
Self(t)
|
||||
}
|
||||
}
|
||||
|
||||
// #4357
|
||||
type T = typeof(
|
||||
1);
|
||||
impl T for .. {
|
||||
}
|
||||
|
|
@ -177,3 +177,7 @@ impl<T: ?const Trait> Foo<T> {
|
|||
Self(t)
|
||||
}
|
||||
}
|
||||
|
||||
// #4357
|
||||
type T = typeof(1);
|
||||
impl T for .. {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue