You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[derive(Encode, Decode)]
pub struct MyStruct<T>
where T: Clone,
{
pub a: A,
pub b: B<T>,
}
Error: expected one of `{`, lifetime, or type, found `,`
The issue is made worse by the Rust formatter in VS Code insisting that there is a comma after the 'where' declaration. If not, then I could just remove the comma, but it is automatically inserted
The text was updated successfully, but these errors were encountered:
The following works:
Using a where statement does not work:
Error:
expected one of `{`, lifetime, or type, found `,`
The issue is made worse by the Rust formatter in VS Code insisting that there is a comma after the 'where' declaration. If not, then I could just remove the comma, but it is automatically inserted
The text was updated successfully, but these errors were encountered: