We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19ccb6c commit 75a5adfCopy full SHA for 75a5adf
src/test/ui/rfc-2565-param-attrs/param-attrs-allowed.rs
@@ -8,25 +8,25 @@ extern "C" {
8
#[allow(unused_mut)] a: i32,
9
#[cfg(something)] b: i32,
10
#[cfg_attr(something, cfg(nothing))] c: i32,
11
- #[forbid(unused_mut)] d: i32,
12
- #[deny(unused_mut)] #[warn(unused_mut)] ...
+ #[deny(unused_mut)] d: i32,
+ #[forbid(unused_mut)] #[warn(unused_mut)] ...
13
);
14
}
15
16
type FnType = fn(
17
18
19
20
21
- #[deny(unused_mut)] #[warn(unused_mut)] e: i32
+ #[forbid(unused_mut)] #[warn(unused_mut)] e: i32
22
23
24
pub fn foo(
25
26
27
28
29
- #[deny(unused_mut)] #[warn(unused_mut)] _e: i32
+ #[forbid(unused_mut)] #[warn(unused_mut)] _e: i32
30
) {}
31
32
// self
0 commit comments