aboutsummaryrefslogtreecommitdiffstats
path: root/tests/compiletest
diff options
context:
space:
mode:
authorKeith Yeung <kungfukeith11@gmail.com>2016-04-08 07:00:49 -0400
committerKeith Yeung <kungfukeith11@gmail.com>2016-04-08 07:00:49 -0400
commit5959aa6cbe54aafa447ba945adbd48c70985f868 (patch)
tree77553d0cc264f15e300d250b43b7eb9363a9df2f /tests/compiletest
parentb6c4f5157183ee976a915a4073120102cc7f430e (diff)
downloadservo-5959aa6cbe54aafa447ba945adbd48c70985f868.tar.gz
servo-5959aa6cbe54aafa447ba945adbd48c70985f868.zip
Remove str_to_string compile test
Diffstat (limited to 'tests/compiletest')
-rw-r--r--tests/compiletest/plugin/compile-fail/str_to_string.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/compiletest/plugin/compile-fail/str_to_string.rs b/tests/compiletest/plugin/compile-fail/str_to_string.rs
deleted file mode 100644
index ee45ee39b96..00000000000
--- a/tests/compiletest/plugin/compile-fail/str_to_string.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-#![feature(plugin)]
-#![plugin(plugins)]
-
-
-fn main() {
- let x = "foo".to_string();
- //~^ ERROR str.to_owned() is more efficient than str.to_string()
-
- let x = &x[..];
- x.to_string();
- //~^ ERROR str.to_owned() is more efficient than str.to_string()
-}