Sign in
fuchsia
/
third_party
/
rust
/
728572440171d8d9c0557c89c3d71cc8d7cf6c2e
/
.
/
src
/
test
/
ui
/
associated-const
/
associated-const-upper-case-lint.rs
blob: c851b27bac04a835332b25849216b777523c98cc [
file
] [
log
] [
blame
]
#![
deny
(
non_upper_case_globals
)]
#![
allow
(
dead_code
)]
struct
Foo
;
impl
Foo
{
const
not_upper
:
bool
=
true
;
}
//~^^ ERROR associated constant `not_upper` should have an upper case name such as `NOT_UPPER`
fn
main
()
{}