]> git.lizzy.rs Git - rust.git/blob - tests/ui-toml/toml_disallowed_method/conf_disallowed_method.stderr
Auto merge of #7160 - flip1995:field_reassign_macros, r=xFrednet,camsteffen
[rust.git] / tests / ui-toml / toml_disallowed_method / conf_disallowed_method.stderr
1 error: use of a disallowed method `regex::re_unicode::Regex::new`
2   --> $DIR/conf_disallowed_method.rs:7:14
3    |
4 LL |     let re = Regex::new(r"ab.*c").unwrap();
5    |              ^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::disallowed-method` implied by `-D warnings`
8
9 error: use of a disallowed method `regex::re_unicode::Regex::is_match`
10   --> $DIR/conf_disallowed_method.rs:8:5
11    |
12 LL |     re.is_match("abc");
13    |     ^^^^^^^^^^^^^^^^^^
14
15 error: use of a disallowed method `core::iter::traits::iterator::Iterator::sum`
16   --> $DIR/conf_disallowed_method.rs:11:5
17    |
18 LL |     a.iter().sum::<i32>();
19    |     ^^^^^^^^^^^^^^^^^^^^^
20
21 error: aborting due to 3 previous errors
22