about summary refs log tree commit diff
path: root/src/test/compile-fail/mutable-arguments.rs
diff options
context:
space:
mode:
authorGareth Daniel Smith <garethdanielsmith@gmail.com>2012-06-30 12:23:59 +0100
committerGareth Daniel Smith <garethdanielsmith@gmail.com>2012-06-30 12:23:59 +0100
commit6d86969260b73432c96b9a63a5a68559e56aabcd (patch)
treecab3c2f26893cc496933d1b10b87a5ead5e4b5cc /src/test/compile-fail/mutable-arguments.rs
parent0b653ab9539140bb04941de9a36c03cf10bfc28b (diff)
downloadrust-6d86969260b73432c96b9a63a5a68559e56aabcd.tar.gz
rust-6d86969260b73432c96b9a63a5a68559e56aabcd.zip
change the test suite `//! kind` syntax to `//~ kind` in order to avoid a
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
Diffstat (limited to 'src/test/compile-fail/mutable-arguments.rs')
-rw-r--r--src/test/compile-fail/mutable-arguments.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/test/compile-fail/mutable-arguments.rs b/src/test/compile-fail/mutable-arguments.rs
index 79e7f412163..4fcb73e8516 100644
--- a/src/test/compile-fail/mutable-arguments.rs
+++ b/src/test/compile-fail/mutable-arguments.rs
@@ -5,25 +5,25 @@ fn mutate_by_mut_ref(&x: uint) {
 }
 
 fn mutate_by_ref(&&x: uint) {
-    //!^ WARNING unused variable: `x`
-    x = 0u; //! ERROR assigning to argument
+    //~^ WARNING unused variable: `x`
+    x = 0u; //~ ERROR assigning to argument
 }
 
 fn mutate_by_val(++x: uint) {
-    //!^ WARNING unused variable: `x`
-    x = 0u; //! ERROR assigning to argument
+    //~^ WARNING unused variable: `x`
+    x = 0u; //~ ERROR assigning to argument
 }
 
 fn mutate_by_copy(+x: uint) {
-    //!^ WARNING unused variable: `x`
-    x = 0u; //! ERROR assigning to argument
-    //!^ WARNING value assigned to `x` is never read
+    //~^ WARNING unused variable: `x`
+    x = 0u; //~ ERROR assigning to argument
+    //~^ WARNING value assigned to `x` is never read
 }
 
 fn mutate_by_move(-x: uint) {
-    //!^ WARNING unused variable: `x`
-    x = 0u; //! ERROR assigning to argument
-    //!^ WARNING value assigned to `x` is never read
+    //~^ WARNING unused variable: `x`
+    x = 0u; //~ ERROR assigning to argument
+    //~^ WARNING value assigned to `x` is never read
 }
 
 fn main() {