Sign in
fuchsia
/
third_party
/
rust
/
3d5ef11f1a64fe829e6e3306cdfc723eba1b0eab
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
ice-generic-assoc-const.rs
blob: e92de84c27984ef521b2d1ac2f22729b04f519c1 [
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
=
0
as
*
const
T
;
fn
is_null
(&
self
)
->
bool
{
*
self
==
Self
::
NULL
}
}
fn
main
()
{
}