3 // pretty-expanded FIXME #23616
5 use std
::default::Default
;
11 // reordering these bounds stops the ICE
13 // nmatsakis: This test used to have the bounds Default + PartialEq +
14 // Default, but having duplicate bounds became illegal.
15 impl<T
: Default
+ PartialEq
> Default
for X
<T
> {
16 fn default() -> X
<T
> {
17 X { a: Default::default() }
21 macro_rules
! constants
{
23 let _
: X
<isize> = Default
::default();