1
Fork 0
This commit is contained in:
Deadbeef 2022-03-21 17:07:09 +11:00
parent 1f3ee7f32e
commit fe5b81348f
No known key found for this signature in database
GPG key ID: 6D017A96D8E6C2F9
2 changed files with 13 additions and 5 deletions

View file

@ -14,7 +14,11 @@ const fn foo<T, E>(res: Result<T, E>) -> Option<T> where E: ~const Destruct {
pub struct Foo<T>(T);
const fn baz<T: ~const Destruct, E: ~const Destruct>(res: Result<Foo<T>, Foo<E>>) -> Option<Foo<T>> {
const fn baz<T, E>(res: Result<Foo<T>, Foo<E>>) -> Option<Foo<T>>
where
T: ~const Destruct,
E: ~const Destruct,
{
foo(res)
}