mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 09:53:26 +00:00
core: Fix unused variable warning
This commit is contained in:
parent
6527fc3925
commit
a896eb326e
@ -130,7 +130,7 @@ fn test_unwrap_resource() {
|
||||
{
|
||||
let x = r(i);
|
||||
let opt = some(x);
|
||||
let y = unwrap(opt);
|
||||
let _y = unwrap(opt);
|
||||
}
|
||||
assert *i == 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user