support unknown trait bounds in type parameters
This commit is contained in:
parent
86a1bb46be
commit
cdd84953d0
2 changed files with 119 additions and 17 deletions
|
@ -191,10 +191,14 @@ circuit check_array_repeat:
|
|||
};
|
||||
}
|
||||
|
||||
pub trait UnknownTrait {}
|
||||
|
||||
impl<T: ?Sized> UnknownTrait for T {}
|
||||
|
||||
#[hdl_module(outline_generated)]
|
||||
pub fn check_skipped_generics<T, #[hdl(skip)] U, const N: usize, #[hdl(skip)] const M: usize>(v: U)
|
||||
where
|
||||
T: StaticType,
|
||||
T: StaticType + UnknownTrait,
|
||||
ConstUsize<N>: KnownSize,
|
||||
U: std::fmt::Display,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue