Where to put the "where clause" in tuple struct definition?

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;
4 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.