sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

Fails on repr(transparent)

Open stepancheg opened this issue 11 months ago • 1 comments

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

stepancheg avatar Dec 21 '24 01:12 stepancheg