rust/tests/ui/coherence/issue-99663.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
325 B
Rust
Raw Normal View History

//@ check-pass
#![feature(type_alias_impl_trait)]
struct Send<T> {
i: InnerSend<T>,
}
type InnerSend<T> = impl Sized;
fn constrain<T>() -> InnerSend<T> {
()
}
trait SendMustNotImplDrop {}
#[allow(drop_bounds)]
impl<T: Drop> SendMustNotImplDrop for T {}
impl<T> SendMustNotImplDrop for Send<T> {}
fn main() {}