mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Fix unused_variables in tests
This commit is contained in:
parent
7834b8fadb
commit
ab52ba2de7
13 changed files with 122 additions and 104 deletions
|
@ -290,6 +290,7 @@ fn x(a: S) {
|
|||
struct S { s: u32 }
|
||||
fn x(a: S) {
|
||||
let S { ref s } = a;
|
||||
_ = s;
|
||||
}
|
||||
",
|
||||
)
|
||||
|
@ -626,7 +627,7 @@ struct TestStruct { one: i32, two: i64 }
|
|||
|
||||
fn test_fn() {
|
||||
let one = 1;
|
||||
let s = TestStruct{ one, two: 2 };
|
||||
let _s = TestStruct{ one, two: 2 };
|
||||
}
|
||||
"#,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue