Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
ui
/
rfc-2632-const-trait-impl
/
call-generic-method-fail.rs
blob: 2bc5ee512c52fd1c77672e55b8c89926409a3756 [
file
] [
log
] [
blame
]
#![
feature
(
const_trait_impl
)]
pub
const
fn
equals_self
<
T
:
PartialEq
>(
t
:
&
T
)
->
bool
{
*
t
==
*
t
//~^ ERROR can't compare
}
fn
main
()
{}