19 lines
373 B
Rust
19 lines
373 B
Rust
// SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
|
|
// See ./unsafe_unpin-expanded.rs for generated code.
|
|
|
|
#![allow(dead_code, clippy::undocumented_unsafe_blocks)]
|
|
|
|
use pin_project::{UnsafeUnpin, pin_project};
|
|
|
|
#[pin_project(UnsafeUnpin)]
|
|
struct Struct<T, U> {
|
|
#[pin]
|
|
pinned: T,
|
|
unpinned: U,
|
|
}
|
|
|
|
unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {}
|
|
|
|
fn main() {}
|