X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Fbytes_nth.rs;h=034c54e6a4206392640af1ada8cbf6dc75ae26bf;hb=26df55112f754033d18d2157731ae3b4ecd41aa8;hp=c5e983d4d4e00d1c0c9dd803f70cd95b45b7cf95;hpb=551931c3ca489e6bd56ce5df077df1b5eac8347e;p=rust.git diff --git a/tests/ui/bytes_nth.rs b/tests/ui/bytes_nth.rs index c5e983d4d4e..034c54e6a42 100644 --- a/tests/ui/bytes_nth.rs +++ b/tests/ui/bytes_nth.rs @@ -5,7 +5,7 @@ fn main() { let s = String::from("String"); - s.bytes().nth(3); + let _ = s.bytes().nth(3); let _ = &s.bytes().nth(3); - s[..].bytes().nth(3); + let _ = s[..].bytes().nth(3); }