about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-01-26 15:20:29 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-26 16:23:48 -0800
commit5610205363eb56b2fd7ce6daeaa3b20a659398a5 (patch)
treef23c090f818a34e744807d563b69b2b9ec5b9be7 /src/test
parent335302f08dbdffd218cbc9fcbfb650cfa273889b (diff)
rustc: Move core injection to its own module
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/no-core-attribute.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/compile-fail/no-core-attribute.rs b/src/test/compile-fail/no-core-attribute.rs
new file mode 100644
index 00000000000..f39aa2eff2d
--- /dev/null
+++ b/src/test/compile-fail/no-core-attribute.rs
@@ -0,0 +1,6 @@
+// error-pattern: whatever
+#[no_core];
+
+fn main() {
+    log(debug, core::int::max_value);
+}
\ No newline at end of file