]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/bytes_nth.rs
Fix adjacent code
[rust.git] / tests / ui / bytes_nth.rs
index 629812cc02cb899961fb384c7d51cb698713a698..034c54e6a4206392640af1ada8cbf6dc75ae26bf 100644 (file)
@@ -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);
 }