]> git.lizzy.rs Git - rust.git/blob - tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.stderr
[arithmetic-side-effects]: Consider user-provided pairs
[rust.git] / tests / ui-toml / nonstandard_macro_braces / conf_nonstandard_macro_braces.stderr
1 error: use of irregular braces for `vec!` macro
2   --> $DIR/conf_nonstandard_macro_braces.rs:44:13
3    |
4 LL |     let _ = vec! {1, 2, 3};
5    |             ^^^^^^^^^^^^^^ help: consider writing: `vec![1, 2, 3]`
6    |
7    = note: `-D clippy::nonstandard-macro-braces` implied by `-D warnings`
8
9 error: use of irregular braces for `format!` macro
10   --> $DIR/conf_nonstandard_macro_braces.rs:45:13
11    |
12 LL |     let _ = format!["ugh {} stop being such a good compiler", "hello"];
13    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider writing: `format!("ugh {} stop being such a good compiler", "hello")`
14
15 error: use of irregular braces for `matches!` macro
16   --> $DIR/conf_nonstandard_macro_braces.rs:46:13
17    |
18 LL |     let _ = matches!{{}, ()};
19    |             ^^^^^^^^^^^^^^^^ help: consider writing: `matches!({}, ())`
20
21 error: use of irregular braces for `quote!` macro
22   --> $DIR/conf_nonstandard_macro_braces.rs:47:13
23    |
24 LL |     let _ = quote!(let x = 1;);
25    |             ^^^^^^^^^^^^^^^^^^ help: consider writing: `quote!{let x = 1;}`
26
27 error: use of irregular braces for `quote::quote!` macro
28   --> $DIR/conf_nonstandard_macro_braces.rs:48:13
29    |
30 LL |     let _ = quote::quote!(match match match);
31    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider writing: `quote::quote!{match match match}`
32
33 error: use of irregular braces for `vec!` macro
34   --> $DIR/conf_nonstandard_macro_braces.rs:19:9
35    |
36 LL |         vec!{0, 0, 0}
37    |         ^^^^^^^^^^^^^ help: consider writing: `vec![0, 0, 0]`
38 ...
39 LL |     let _ = test!(); // trigger when macro def is inside our own crate
40    |             ------- in this macro invocation
41    |
42    = note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
43
44 error: use of irregular braces for `type_pos!` macro
45   --> $DIR/conf_nonstandard_macro_braces.rs:57:12
46    |
47 LL |     let _: type_pos!(usize) = vec![];
48    |            ^^^^^^^^^^^^^^^^ help: consider writing: `type_pos![usize]`
49
50 error: use of irregular braces for `eprint!` macro
51   --> $DIR/conf_nonstandard_macro_braces.rs:59:5
52    |
53 LL |     eprint!("test if user config overrides defaults");
54    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider writing: `eprint!["test if user config overrides defaults"]`
55
56 error: aborting due to 8 previous errors
57