Sign in
fuchsia
/
third_party
/
rust
/
7d69d4ced23c446d6af341e3f9dc031a302150fc
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
ice-generic-assoc-const.rs
blob: 2ad1a633d125f18af76f35b09222dbad621ea1b9 [
file
] [
log
] [
blame
]
// compile-pass
pub
trait
Nullable
{
const
NULL
:
Self
;
fn
is_null
(&
self
)
->
bool
;
}
impl
<
T
>
Nullable
for
*
const
T
{
const
NULL
:
Self
=
core
::
ptr
::
null
::<
T
>();
fn
is_null
(&
self
)
->
bool
{
*
self
==
Self
::
NULL
}
}
fn
main
()
{
}