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

const param support #47

Open
steffahn opened this issue Oct 18, 2021 · 1 comment
Open

const param support #47

steffahn opened this issue Oct 18, 2021 · 1 comment

Comments

@steffahn
Copy link
Contributor

currently, something like

#[self_referencing]
struct Foo<const C: usize> {
    x: (),
    #[borrows(x)]
    y: &'this (),
}

results in an unhelpful error message

error: custom attribute panicked
   --> src/main.rs:11:1
    |
 11 | #[self_referencing]
    | ^^^^^^^^^^^^^^^^^^^
    |
    = help: message: not implemented

@Y-jiji
Copy link
Contributor

Y-jiji commented Dec 10, 2023

A quick patch. Please give me some unfriendly comments about soundness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants