]> git.lizzy.rs Git - rust.git/commitdiff
Test the skip attribute
authorNick Cameron <ncameron@mozilla.com>
Thu, 23 Apr 2015 04:25:48 +0000 (16:25 +1200)
committerNick Cameron <ncameron@mozilla.com>
Thu, 23 Apr 2015 04:25:48 +0000 (16:25 +1200)
tests/idem/skip.rs [new file with mode: 0644]

diff --git a/tests/idem/skip.rs b/tests/idem/skip.rs
new file mode 100644 (file)
index 0000000..bd5a132
--- /dev/null
@@ -0,0 +1,12 @@
+// Test the skip attribute works
+
+#[rustfmt_skip]
+fn foo() { badly; formatted; stuff
+; }
+
+#[rustfmt_skip]
+trait Foo
+{
+fn foo(
+);
+}