Sign in
android
/
toolchain
/
rustc
/
d2dbbcd40813d506244f1255bc2c84088a0197e1
/
.
/
src
/
test
/
ui
/
rfc-2632-const-trait-impl
/
call-generic-method-nonconst-bound.rs
blob: e197c8b73c535e43484fa5da23579abbf7ff225a [
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
()
{}