mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
Add a test for #3313
This commit is contained in:
parent
6541f200c9
commit
1ae032652c
@ -211,3 +211,10 @@ pub struct Params {
|
||||
all(target_arch = "wasm32", feature = "wasm-bindgen"),
|
||||
))))]
|
||||
type Os = NoSource;
|
||||
|
||||
// #3313
|
||||
fn stmt_expr_attributes() {
|
||||
let foo ;
|
||||
#[must_use]
|
||||
foo = false ;
|
||||
}
|
@ -246,3 +246,10 @@ mod issue_2620 {
|
||||
)
|
||||
)))]
|
||||
type Os = NoSource;
|
||||
|
||||
// #3313
|
||||
fn stmt_expr_attributes() {
|
||||
let foo;
|
||||
#[must_use]
|
||||
foo = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user