summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/issue-99663.rs
blob: a2d4d398ce1d58c59485644cb747f9d2d9f08330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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() {}