Sign in
fuchsia
/
third_party
/
rust
/
2fcea9fb68c8e04f10e5cb15bbfb486de9800afa
/
.
/
tests
/
ui
/
traits
/
const-traits
/
const_derives
/
derive-const-with-params.rs
blob: bbc0faee10f83276b117897adf404a7f428cce1f [
file
] [
log
] [
blame
]
//@ check-pass
#![
feature
(
derive_const
)]
#![
feature
(
const_trait_impl
,
const_cmp
)]
#[
derive_const
(
PartialEq
)]
pub
struct
Reverse
<
T
>(
T
);
const
fn
foo
(
a
:
Reverse
<
i32
>,
b
:
Reverse
<
i32
>)
->
bool
{
a
==
b
}
fn
main
()
{}