Sign in
rust
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
parser
/
assoc
/
assoc-const-underscore-syntactic-pass.rs
blob: 63c567b2d033258f7cbe581ccec9e8c5e3802cc7 [
file
] [
log
] [
blame
]
// All constant items (associated or otherwise) may syntactically use `_` as a name.
//@ check-pass
fn
main
()
{}
#[
cfg
(
false
)]
const
_
:
()
=
{
pub
trait
A
{
const
_
:
()
=
();
}
impl
A
for
()
{
const
_
:
()
=
();
}
impl
dyn A
{
const
_
:
()
=
();
}
};