X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Fbytes_nth.rs;h=034c54e6a4206392640af1ada8cbf6dc75ae26bf;hb=26df55112f754033d18d2157731ae3b4ecd41aa8;hp=629812cc02cb899961fb384c7d51cb698713a698;hpb=605e9ba3d7fa9e42afcdee5fd94c95f771693d07;p=rust.git diff --git a/tests/ui/bytes_nth.rs b/tests/ui/bytes_nth.rs index 629812cc02c..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); - &s.bytes().nth(3); - s[..].bytes().nth(3); + let _ = s.bytes().nth(3); + let _ = &s.bytes().nth(3); + let _ = s[..].bytes().nth(3); }