summaryrefslogtreecommitdiff
path: root/tests/examplefiles/rust_example.rs
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-08 09:21:15 +0200
committerGeorg Brandl <georg@python.org>2014-10-08 09:21:15 +0200
commit444fb6fd9b3492040a36fcca672fee8175f8d603 (patch)
tree2bd411ca78decf276b95dc6b1788e594b2e35287 /tests/examplefiles/rust_example.rs
parent491fec23ef01687906f5d71ee718522cd2917926 (diff)
parentc1bfe4eed3805d3556bffa3c6b9cc2d3f6976205 (diff)
downloadpygments-444fb6fd9b3492040a36fcca672fee8175f8d603.tar.gz
Merged in leodemoura/pygments-main (pull request #399)
Diffstat (limited to 'tests/examplefiles/rust_example.rs')
-rw-r--r--tests/examplefiles/rust_example.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/examplefiles/rust_example.rs b/tests/examplefiles/rust_example.rs
index 1c0a70c3..8c44af1d 100644
--- a/tests/examplefiles/rust_example.rs
+++ b/tests/examplefiles/rust_example.rs
@@ -11,6 +11,8 @@
// based on:
// http://shootout.alioth.debian.org/u32/benchmark.php?test=nbody&lang=java
+/* nest some /* comments */ */
+
extern mod std;
use core::os;
@@ -22,7 +24,7 @@ use core::os;
// an llvm intrinsic.
#[nolink]
extern mod libc {
- #[legacy_exports];
+ #![legacy_exports];
fn sqrt(n: float) -> float;
}