Hello
This do not compile:
pub struct Foo<T>
where
T: Whatever,
(
// fields ...
);
Is there a way to make it work except by putting the constraint inside the <>
?
Or is it not possible to use "where clause" with tuple structs?
Hello
This do not compile:
pub struct Foo<T>
where
T: Whatever,
(
// fields ...
);
Is there a way to make it work except by putting the constraint inside the <>
?
Or is it not possible to use "where clause" with tuple structs?
it goes after the parens,
pub struct Foo<T>
(
// fields ...
)
where
T: Whatever;
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.