1 error: unused attribute `must_use`
2 --> $DIR/unused_attributes-must_use.rs:58:1
7 note: the built-in attribute `must_use` will be ignored, since it's applied to the macro invocation `global_asm`
8 --> $DIR/unused_attributes-must_use.rs:59:1
12 note: the lint level is defined here
13 --> $DIR/unused_attributes-must_use.rs:2:9
15 LL | #![deny(unused_attributes, unused_must_use)]
18 error: `#[must_use]` has no effect when applied to an extern crate
19 --> $DIR/unused_attributes-must_use.rs:5:1
24 error: `#[must_use]` has no effect when applied to a module
25 --> $DIR/unused_attributes-must_use.rs:8:1
30 error: `#[must_use]` has no effect when applied to a use
31 --> $DIR/unused_attributes-must_use.rs:11:1
36 error: `#[must_use]` has no effect when applied to a constant item
37 --> $DIR/unused_attributes-must_use.rs:14:1
42 error: `#[must_use]` has no effect when applied to a static item
43 --> $DIR/unused_attributes-must_use.rs:16:1
48 error: `#[must_use]` has no effect when applied to an implementation block
49 --> $DIR/unused_attributes-must_use.rs:33:1
54 error: `#[must_use]` has no effect when applied to a foreign module
55 --> $DIR/unused_attributes-must_use.rs:47:1
60 error: `#[must_use]` has no effect when applied to a type alias
61 --> $DIR/unused_attributes-must_use.rs:61:1
66 error: `#[must_use]` has no effect when applied to a type parameter
67 --> $DIR/unused_attributes-must_use.rs:64:8
69 LL | fn qux<#[must_use] T>(_: T) {}
72 error: `#[must_use]` has no effect when applied to an implementation block
73 --> $DIR/unused_attributes-must_use.rs:79:1
78 error: `#[must_use]` has no effect when applied to a trait alias
79 --> $DIR/unused_attributes-must_use.rs:84:1
84 error: `#[must_use]` has no effect when applied to a macro def
85 --> $DIR/unused_attributes-must_use.rs:87:1
90 error: `#[must_use]` has no effect when applied to a statement
91 --> $DIR/unused_attributes-must_use.rs:95:5
96 error: `#[must_use]` has no effect when applied to a closure
97 --> $DIR/unused_attributes-must_use.rs:99:13
99 LL | let x = #[must_use]
102 error: `#[must_use]` has no effect when applied to an match arm
103 --> $DIR/unused_attributes-must_use.rs:121:9
108 error: `#[must_use]` has no effect when applied to a struct field
109 --> $DIR/unused_attributes-must_use.rs:129:28
111 LL | let s = PatternField { #[must_use] foo: 123 };
114 error: `#[must_use]` has no effect when applied to a pattern field
115 --> $DIR/unused_attributes-must_use.rs:130:24
117 LL | let PatternField { #[must_use] foo } = s;
120 error: `#[must_use]` has no effect when applied to an associated const
121 --> $DIR/unused_attributes-must_use.rs:68:5
126 error: `#[must_use]` has no effect when applied to an associated type
127 --> $DIR/unused_attributes-must_use.rs:70:5
132 error: `#[must_use]` has no effect when applied to a foreign static item
133 --> $DIR/unused_attributes-must_use.rs:50:5
138 error: unused `X` that must be used
139 --> $DIR/unused_attributes-must_use.rs:103:5
144 note: the lint level is defined here
145 --> $DIR/unused_attributes-must_use.rs:2:28
147 LL | #![deny(unused_attributes, unused_must_use)]
150 error: unused `Y` that must be used
151 --> $DIR/unused_attributes-must_use.rs:104:5
156 error: unused `U` that must be used
157 --> $DIR/unused_attributes-must_use.rs:105:5
162 error: unused return value of `U::method` that must be used
163 --> $DIR/unused_attributes-must_use.rs:106:5
168 error: unused return value of `foo` that must be used
169 --> $DIR/unused_attributes-must_use.rs:107:5
174 error: unused return value of `foreign_foo` that must be used
175 --> $DIR/unused_attributes-must_use.rs:110:9
180 error: unused return value of `Use::get_four` that must be used
181 --> $DIR/unused_attributes-must_use.rs:118:5
186 error: aborting due to 28 previous errors