Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
rfc-2632-const-trait-impl
/
call-generic-in-impl.rs
blob: 50c46579086c6cad1201a86a18ee610bb8e11cac [
file
] [
log
] [
blame
]
// check-pass
#![
feature
(
const_trait_impl
)]
#[
const_trait
]
trait
MyPartialEq
{
fn
eq
(&
self
,
other
:
&
Self
)
->
bool
;
}
impl
<
T
:
~
const
PartialEq
>
const
MyPartialEq
for
T
{
fn
eq
(&
self
,
other
:
&
Self
)
->
bool
{
PartialEq
::
eq
(
self
,
other
)
}
}
fn
main
()
{}