Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
tests
/
ui
/
associated-consts
/
associated-const-underscore-dead-code.rs
blob: 866d67eee6f3b3393573ce6542b5a42182d4b8af [
file
]
#![
feature
(
associated_const_underscore
)]
#![
deny
(
dead_code
)]
fn
main
()
{}
struct
Struct
{}
impl
Struct
{
const
_
:
()
=
{
struct
Unused
;
//~^ ERROR: struct `Unused` is never constructed [dead_code]
};
}