ouroboros icon indicating copy to clipboard operation
ouroboros copied to clipboard

`const` param support

Open steffahn opened this issue 3 years ago • 1 comments

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

steffahn avatar Oct 18 '21 17:10 steffahn

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

Y-jiji avatar Dec 10 '23 14:12 Y-jiji