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