taiki-e/pin-project-lite

`no such field` in `new` function

FH0 opened this issue · 1 comments

FH0 commented
pin_project! {
    struct Test<T> {
        value: T,
    }
}

impl<T: Unpin> Test<T> {
    pub fn new(value: T) -> Self {
        Self { value }
    }
}

image

I am a novice learning Rust. Compiler is unhappy after I added pin_project! to Test.