]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-4252.rs
3 fn call
<T
: std
::fmt
::Debug
>(&self, x
: &T
);
4 fn default_method
<T
: std
::fmt
::Debug
>(&self, x
: &T
) {
5 println
!("X::default_method {:?}", x
);
13 struct Z
<T
: X
+std
::fmt
::Debug
> {
18 fn call
<T
: std
::fmt
::Debug
>(&self, x
: &T
) {
19 println
!("X::call {:?} {:?}", self, x
);
23 impl<T
: X
+ std
::fmt
::Debug
> Drop
for Z
<T
> {
25 // These statements used to cause an ICE.
27 self.x
.default_method(self);
32 let _z
= Z {x: Y(42)}
;