diff options
Diffstat (limited to 'tests/ui/lint/lint-non-uppercase-associated-const.stderr')
-rw-r--r-- | tests/ui/lint/lint-non-uppercase-associated-const.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/lint/lint-non-uppercase-associated-const.stderr b/tests/ui/lint/lint-non-uppercase-associated-const.stderr new file mode 100644 index 000000000..411ff51aa --- /dev/null +++ b/tests/ui/lint/lint-non-uppercase-associated-const.stderr @@ -0,0 +1,14 @@ +error: associated constant `not_upper` should have an upper case name + --> $DIR/lint-non-uppercase-associated-const.rs:7:11 + | +LL | const not_upper: bool = true; + | ^^^^^^^^^ help: convert the identifier to upper case: `NOT_UPPER` + | +note: the lint level is defined here + --> $DIR/lint-non-uppercase-associated-const.rs:1:9 + | +LL | #![deny(non_upper_case_globals)] + | ^^^^^^^^^^^^^^^^^^^^^^ + +error: aborting due to previous error + |