]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/tempfile.rs
Deprecate the bytes!() macro.
[rust.git] / src / test / run-pass / tempfile.rs
index 316d1facb18ff54bf8901c867461979578fd3c17..4355bf4127fc4f9c727d679a9cad16269971a985 100644 (file)
@@ -29,7 +29,7 @@ fn test_tempdir() {
     let path = {
         let p = TempDir::new_in(&Path::new("."), "foobar").unwrap();
         let p = p.path();
-        assert!(p.as_vec().ends_with(bytes!("foobar")));
+        assert!(p.as_vec().ends_with(b"foobar"));
         p.clone()
     };
     assert!(!path.exists());