]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-33187.rs
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / ui / issues / issue-33187.rs
1 // run-pass
2 // ignore-compare-mode-chalk
3 struct Foo<A: Repr>(<A as Repr>::Data);
4
5 impl<A> Copy for Foo<A> where <A as Repr>::Data: Copy { }
6 impl<A> Clone for Foo<A> where <A as Repr>::Data: Clone {
7     fn clone(&self) -> Self { Foo(self.0.clone()) }
8 }
9
10 trait Repr {
11     type Data;
12 }
13
14 impl<A> Repr for A {
15     type Data = u32;
16 }
17
18 fn main() {
19 }