Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on repr(transparent) #3650

Open
stepancheg opened this issue Dec 21, 2024 · 0 comments
Open

Fails on repr(transparent) #3650

stepancheg opened this issue Dec 21, 2024 · 0 comments
Labels

Comments

@stepancheg
Copy link

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 stepancheg added the bug label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant