sqlx
sqlx copied to clipboard
Fails on repr(transparent)
Bug Description
derive(sqlx::Decode) fails on #[repr(transparent)]
Minimal Reproduction
#[derive(sqlx::Decode)]
#[repr(transparent)]
struct Foo {
s: String,
}
error: unexpected #[repr(..)]
--> xxx.rs:43:1
|
43 | / #[repr(transparent)]
44 | | struct Foo {
45 | | s: String,
46 | | }
| |_^
Info
- SQLx version: 0.8.2
- SQLx features enabled: uuid
- Database server and version: Postgres
- Operating system: mac
rustc --version: 1.83.0