]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/str.rs
Convert most code to new inner attribute syntax.
[rust.git] / src / libstd / str.rs
index fac4202217f49c49a89fa5f00c7751c3be2b85a0..0e640d3a66262a4ed8e9477a410f886eb5b365ad 100644 (file)
@@ -4008,7 +4008,7 @@ fn test_char_range_at_reverse_underflow() {
 
     #[test]
     fn test_add() {
-        #[allow(unnecessary_allocation)];
+        #![allow(unnecessary_allocation)]
         macro_rules! t (
             ($s1:expr, $s2:expr, $e:expr) => { {
                 let s1 = $s1;