]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.stderr
Auto merge of #91407 - the8472:deserialize-unchecked-utf8, r=michaelwoerister
[rust.git] / src / tools / clippy / tests / ui-toml / toml_disallowed_methods / conf_disallowed_methods.stderr
1 error: use of a disallowed method `regex::Regex::new`
2   --> $DIR/conf_disallowed_methods.rs:7:14
3    |
4 LL |     let re = Regex::new(r"ab.*c").unwrap();
5    |              ^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::disallowed-methods` implied by `-D warnings`
8
9 error: use of a disallowed method `regex::Regex::is_match`
10   --> $DIR/conf_disallowed_methods.rs:8:5
11    |
12 LL |     re.is_match("abc");
13    |     ^^^^^^^^^^^^^^^^^^
14    |
15    = note: no matching allowed (from clippy.toml)
16
17 error: use of a disallowed method `std::iter::Iterator::sum`
18   --> $DIR/conf_disallowed_methods.rs:11:5
19    |
20 LL |     a.iter().sum::<i32>();
21    |     ^^^^^^^^^^^^^^^^^^^^^
22
23 error: aborting due to 3 previous errors
24