Disallow ambiguous attributes on expressions
This commit is contained in:
parent
a568985c4f
commit
966dd60251
@ -214,8 +214,8 @@ type Os = NoSource;
|
|||||||
// #3313
|
// #3313
|
||||||
fn stmt_expr_attributes() {
|
fn stmt_expr_attributes() {
|
||||||
let foo ;
|
let foo ;
|
||||||
#[must_use]
|
(#[must_use]
|
||||||
foo = false ;
|
foo) = false ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// #3509
|
// #3509
|
||||||
|
@ -248,8 +248,8 @@ type Os = NoSource;
|
|||||||
// #3313
|
// #3313
|
||||||
fn stmt_expr_attributes() {
|
fn stmt_expr_attributes() {
|
||||||
let foo;
|
let foo;
|
||||||
#[must_use]
|
(#[must_use]
|
||||||
foo = false;
|
foo) = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// #3509
|
// #3509
|
||||||
|
Loading…
x
Reference in New Issue
Block a user