Thanks to visit codestin.com Credit goes to github.com
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 0644cc1 commit b4e77d2Copy full SHA for b4e77d2
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
- #[deny(unused_mut)] d: i32,
12
- #[forbid(unused_mut)] #[warn(unused_mut)] ...
+ #[forbid(unused_mut)] d: i32,
+ #[deny(unused_mut)] #[warn(unused_mut)] ...
13
);
14
}
15
16
type FnType = fn(
17
18
19
20
21
- #[forbid(unused_mut)] #[warn(unused_mut)] e: i32
+ #[deny(unused_mut)] #[warn(unused_mut)] e: i32
22
23
24
pub fn foo(
25
26
27
28
29
- #[forbid(unused_mut)] #[warn(unused_mut)] _e: i32
+ #[deny(unused_mut)] #[warn(unused_mut)] _e: i32
30
) {}
31
32
// self
0 commit comments