Closed FH0 closed 1 year ago
pin_project! { struct Test<T> { value: T, } } impl<T: Unpin> Test<T> { pub fn new(value: T) -> Self { Self { value } } }
I am a novice learning Rust. Compiler is unhappy after I added pin_project! to Test.
pin_project!
Test
This is rust-analyzer bug. Compilation passes without problems. https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=fd79e5cda66a9d465cb050c889af5bb1
I am a novice learning Rust. Compiler is unhappy after I added
pin_project!
toTest
.