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
use thiserror::Error;#[derive(Debug)]pubstructS1(String);#[derive(Debug)]pubstructS2{inner:String,}#[derive(Debug,Error)]pubenumBigError{#[error("{:?}",.0)]E1(S1),#[error("{}",.0.inner)]E2(S2),#[error("{}",.0.0)]E3(S2),}fnmain(){}
We were accidentally printing the schema out twice. Probably a copy-paste error.
Provided both table_name and suggested_table into the error even though
it's redundant because of
dtolnay/thiserror#309
GitOrigin-RevId: 18bb7edece0cc7ea1499c46a90626dd83f6d1f53
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=ada5458f736b0dd393bbe31e10b4ff31
E1 and E2 compile.
E3 fails to compile with
I found it a bit surprising - it seems like it should work.
The text was updated successfully, but these errors were encountered: