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

DbTxn must_use doesn't work #578

Open
kayabaNerve opened this issue Jul 5, 2024 · 2 comments
Open

DbTxn must_use doesn't work #578

kayabaNerve opened this issue Jul 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kayabaNerve
Copy link
Member

This is presumably somewhat a bug in Rust itself. I just need to make a MRE and evaluate it.

Identified due to #561.

@kayabaNerve kayabaNerve added the bug Something isn't working label Jul 5, 2024
@kayabaNerve
Copy link
Member Author

rust-lang/rust#102238 (comment) for my comment on the relevant issue.

@kayabaNerve
Copy link
Member Author

#[must_use]
trait X {}

fn y<Z: X>(z: Z) -> Z {
  z
}

fn a<Z: X>(z: Z) {
    y(z);
}

#[must_use]
struct A;
impl X for A {}

fn main() {
  a(A);
}

for the MRE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant