Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
crashes
/
associated-constant-ice.rs
blob: 948deba3ea6e3cb766a37360eba6816ed5ddfd0a [
file
] [
log
] [
blame
]
/// Test for https://github.com/rust-lang/rust-clippy/issues/1698
pub
trait
Trait
{
const
CONSTANT
:
u8
;
}
impl
Trait
for
u8
{
const
CONSTANT
:
u8
=
2
;
}
fn
main
()
{
println
!(
"{}"
,
u8
::
CONSTANT
*
10
);
}