summaryrefslogtreecommitdiffstats
path: root/third_party/rust/paste/tests/ui/case-warning.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/paste/tests/ui/case-warning.stderr')
-rw-r--r--third_party/rust/paste/tests/ui/case-warning.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/third_party/rust/paste/tests/ui/case-warning.stderr b/third_party/rust/paste/tests/ui/case-warning.stderr
new file mode 100644
index 0000000000..83099129df
--- /dev/null
+++ b/third_party/rust/paste/tests/ui/case-warning.stderr
@@ -0,0 +1,16 @@
+error: function `fooBar` should have a snake case name
+ --> tests/ui/case-warning.rs:8:20
+ |
+8 | pub fn [<foo $i>]() {}
+ | ^^^^^^^^^^ help: convert the identifier to snake case: `foo_bar`
+...
+13 | m!(Bar);
+ | ------- in this macro invocation
+ |
+note: the lint level is defined here
+ --> tests/ui/case-warning.rs:1:9
+ |
+1 | #![deny(warnings)]
+ | ^^^^^^^^
+ = note: `#[deny(non_snake_case)]` implied by `#[deny(warnings)]`
+ = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)