about summary refs log tree commit diff
path: root/tests/ui/sliced_string_as_bytes.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/sliced_string_as_bytes.fixed')
-rw-r--r--tests/ui/sliced_string_as_bytes.fixed3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/sliced_string_as_bytes.fixed b/tests/ui/sliced_string_as_bytes.fixed
index 469ad27a99b..16c0daff78f 100644
--- a/tests/ui/sliced_string_as_bytes.fixed
+++ b/tests/ui/sliced_string_as_bytes.fixed
@@ -26,8 +26,11 @@ fn main() {
     let string: String = "dolor sit amet".to_owned();
 
     let bytes = &s.as_bytes()[1..5];
+    //~^ sliced_string_as_bytes
     let bytes = &string.as_bytes()[1..];
+    //~^ sliced_string_as_bytes
     let bytes = &"consectetur adipiscing".as_bytes()[..=5];
+    //~^ sliced_string_as_bytes
 
     let f = Foo;
     let bytes = f[0..4].as_bytes();