Skip to content

Commit 606f798

Browse files
committed
Rename test so that both "kills-loans" tests match names
1 parent 9bd9b0d commit 606f798

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/test/ui/nll/polonius/storagedead-kills-loans.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
use std::{io, mem};
1111
use std::io::Read;
1212

13-
fn fill(r: &mut Read, mut buf: &mut [u8]) -> io::Result<()> {
13+
#[allow(dead_code)]
14+
fn fill(r: &mut dyn Read, mut buf: &mut [u8]) -> io::Result<()> {
1415
while buf.len() > 0 {
1516
match r.read(buf).unwrap() {
1617
0 => return Err(io::Error::new(io::ErrorKind::Other,

0 commit comments

Comments
 (0)