rust/tests/ui/rfcs/rfc-2565-param-attrs/param-attrs-cfg.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

123 lines
4.3 KiB
Plaintext
Raw Normal View History

2019-07-26 17:52:37 -05:00
error: unused variable: `a`
--> $DIR/param-attrs-cfg.rs:24:23
|
2019-07-26 17:52:37 -05:00
LL | #[cfg(something)] a: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_a`
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
2019-07-26 17:52:37 -05:00
--> $DIR/param-attrs-cfg.rs:5:9
|
LL | #![deny(unused_variables)]
| ^^^^^^^^^^^^^^^^
error: unused variable: `a`
--> $DIR/param-attrs-cfg.rs:41:27
|
LL | #[cfg(something)] a: i32,
| ^ help: if this is intentional, prefix it with an underscore: `_a`
2019-07-26 17:52:37 -05:00
error: unused variable: `b`
--> $DIR/param-attrs-cfg.rs:30:23
|
LL | #[cfg(something)] b: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
2019-07-26 17:52:37 -05:00
error: unused variable: `c`
2019-07-26 17:52:37 -05:00
--> $DIR/param-attrs-cfg.rs:32:40
|
LL | #[cfg_attr(nothing, cfg(nothing))] c: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_c`
error: unused variable: `b`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:48:27
|
LL | #[cfg(something)] b: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
error: unused variable: `c`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:50:44
|
LL | #[cfg_attr(nothing, cfg(nothing))] c: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_c`
error: unused variable: `b`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:56:27
|
LL | #[cfg(something)] b: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
error: unused variable: `c`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:58:44
|
LL | #[cfg_attr(nothing, cfg(nothing))] c: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_c`
error: unused variable: `b`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:67:27
|
LL | #[cfg(something)] b: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
error: unused variable: `c`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:69:44
|
LL | #[cfg_attr(nothing, cfg(nothing))] c: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_c`
error: unused variable: `b`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:75:27
|
LL | #[cfg(something)] b: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
error: unused variable: `c`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:77:44
|
LL | #[cfg_attr(nothing, cfg(nothing))] c: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_c`
error: unused variable: `b`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:86:27
|
LL | #[cfg(something)] b: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
error: unused variable: `c`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:88:44
|
LL | #[cfg_attr(nothing, cfg(nothing))] c: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_c`
error: unused variable: `b`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:94:27
|
LL | #[cfg(something)] b: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
error: unused variable: `c`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:96:44
|
LL | #[cfg_attr(nothing, cfg(nothing))] c: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_c`
2022-08-23 06:53:02 -05:00
error: unused variable: `a`
--> $DIR/param-attrs-cfg.rs:107:27
|
LL | #[cfg(something)] a: i32,
| ^ help: if this is intentional, prefix it with an underscore: `_a`
error: unused variable: `b`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:113:27
|
LL | #[cfg(something)] b: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
error: unused variable: `c`
2022-08-23 06:53:02 -05:00
--> $DIR/param-attrs-cfg.rs:115:44
|
LL | #[cfg_attr(nothing, cfg(nothing))] c: i32,
2020-03-23 03:02:46 -05:00
| ^ help: if this is intentional, prefix it with an underscore: `_c`
error: aborting due to 19 previous errors