We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6541f20 commit 1ae0326Copy full SHA for 1ae0326
tests/source/attrib.rs
@@ -211,3 +211,10 @@ pub struct Params {
211
all(target_arch = "wasm32", feature = "wasm-bindgen"),
212
))))]
213
type Os = NoSource;
214
+
215
+// #3313
216
+fn stmt_expr_attributes() {
217
+ let foo ;
218
+ #[must_use]
219
+ foo = false ;
220
+}
tests/target/attrib.rs
@@ -246,3 +246,10 @@ mod issue_2620 {
246
)
247
)))]
248
249
250
251
252
+ let foo;
253
254
+ foo = false;
255
0 commit comments