Sign in
fuchsia
/
third_party
/
rust
/
e3029abfaec4252ab0ae7010780be0094d8870e0
/
.
/
tests
/
ui
/
rfcs
/
rfc-2632-const-trait-impl
/
call-generic-method-nonconst-bound.rs
blob: 9dbc2b95626891190b2af95cf9a8fbcb8d170221 [
file
] [
log
] [
blame
]
//@ check-pass
struct
S
;
impl
PartialEq
for
S
{
fn
eq
(&
self
,
_
:
&
S
)
->
bool
{
true
}
}
const
fn
equals_self
<
T
:
PartialEq
>(
t
:
&
T
)
->
bool
{
true
}
pub
const
EQ
:
bool
=
equals_self
(&
S
);
fn
main
()
{}