Debian Codegraph @

vendor/pin-project-lite/tests/ui/not_unpin/negative_impls_stable.stderr

raw
1 error[E0119]: conflicting implementations of trait `Unpin` for type `Foo<MyPhantomPinned, ()>`
2 --> tests/ui/not_unpin/negative_impls_stable.rs:5:1
3 |
4 5 | / pin_project_lite::pin_project! {
5 6 | | #[project(!Unpin)]
6 7 | | struct Foo<Pinned, Unpinned> {
7 8 | | #[pin]
8 ... |
9 12 | | }
10 | |_^ conflicting implementation for `Foo<MyPhantomPinned, ()>`
11 ...
12 16 | impl Unpin for Foo<MyPhantomPinned, ()> {}
13 | --------------------------------------- first implementation here
14 |
15 = note: upstream crates may add a new impl of trait `std::marker::Unpin` for type `(std::marker::PhantomData<&()>, std::marker::PhantomPinned)` in future versions
16 = note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project_lite::pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)