]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2565-param-attrs/param-attrs-cfg.stderr
Allow attributes in formal function parameters
[rust.git] / src / test / ui / rfc-2565-param-attrs / param-attrs-cfg.stderr
1 error: unused variable: `b`
2   --> $DIR/param-attrs-cfg.rs:24:23
3    |
4 LL |     #[cfg(something)] b: i32,
5    |                       ^ help: consider prefixing with an underscore: `_b`
6    |
7 note: lint level defined here
8   --> $DIR/param-attrs-cfg.rs:4:9
9    |
10 LL | #![deny(unused_variables)]
11    |         ^^^^^^^^^^^^^^^^
12
13 error: unused variable: `c`
14   --> $DIR/param-attrs-cfg.rs:26:40
15    |
16 LL |     #[cfg_attr(nothing, cfg(nothing))] c: i32,
17    |                                        ^ help: consider prefixing with an underscore: `_c`
18
19 error: unused variable: `b`
20   --> $DIR/param-attrs-cfg.rs:72:27
21    |
22 LL |         #[cfg(something)] b: i32,
23    |                           ^ help: consider prefixing with an underscore: `_b`
24
25 error: unused variable: `c`
26   --> $DIR/param-attrs-cfg.rs:74:44
27    |
28 LL |         #[cfg_attr(nothing, cfg(nothing))] c: i32,
29    |                                            ^ help: consider prefixing with an underscore: `_c`
30
31 error: unused variable: `b`
32   --> $DIR/param-attrs-cfg.rs:47:27
33    |
34 LL |         #[cfg(something)] b: i32,
35    |                           ^ help: consider prefixing with an underscore: `_b`
36
37 error: unused variable: `c`
38   --> $DIR/param-attrs-cfg.rs:49:44
39    |
40 LL |         #[cfg_attr(nothing, cfg(nothing))] c: i32,
41    |                                            ^ help: consider prefixing with an underscore: `_c`
42
43 error: unused variable: `b`
44   --> $DIR/param-attrs-cfg.rs:36:27
45    |
46 LL |         #[cfg(something)] b: i32,
47    |                           ^ help: consider prefixing with an underscore: `_b`
48
49 error: unused variable: `c`
50   --> $DIR/param-attrs-cfg.rs:38:44
51    |
52 LL |         #[cfg_attr(nothing, cfg(nothing))] c: i32,
53    |                                            ^ help: consider prefixing with an underscore: `_c`
54
55 error: unused variable: `b`
56   --> $DIR/param-attrs-cfg.rs:58:27
57    |
58 LL |         #[cfg(something)] b: i32,
59    |                           ^ help: consider prefixing with an underscore: `_b`
60
61 error: unused variable: `c`
62   --> $DIR/param-attrs-cfg.rs:60:44
63    |
64 LL |         #[cfg_attr(nothing, cfg(nothing))] c: i32,
65    |                                            ^ help: consider prefixing with an underscore: `_c`
66
67 error: aborting due to 10 previous errors
68