about summary refs log tree commit diff
path: root/tests/ui/coherence/issue-99663.rs
blob: 49156952990d9c716a5ddfc5de66aa0339250e64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//@ check-pass

#![feature(type_alias_impl_trait)]

struct Send<T> {
    i: InnerSend<T>,
}

type InnerSend<T> = impl Sized;

#[define_opaque(InnerSend)]
fn constrain<T>() -> InnerSend<T> {
    ()
}

trait SendMustNotImplDrop {}

#[allow(drop_bounds)]
impl<T: Drop> SendMustNotImplDrop for T {}

impl<T> SendMustNotImplDrop for Send<T> {}

fn main() {}