]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-25700-1.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-25700-1.rs
CommitLineData
b7449926 1// run-pass
62682a34 2struct S<T: 'static>(Option<&'static T>);
85aaf69f 3
62682a34
SL
4trait Tr { type Out; }
5impl<T> Tr for T { type Out = T; }
223e47cc 6
62682a34
SL
7impl<T: 'static> Copy for S<T> where S<T>: Tr<Out=T> {}
8impl<T: 'static> Clone for S<T> where S<T>: Tr<Out=T> {
9 fn clone(&self) -> Self { *self }
10}
11fn main() {
12 S::<()>(None);
13}