summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0010-teach.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0010-teach.rs')
-rw-r--r--tests/ui/error-codes/E0010-teach.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/error-codes/E0010-teach.rs b/tests/ui/error-codes/E0010-teach.rs
index fc5dffb37..798fcda2a 100644
--- a/tests/ui/error-codes/E0010-teach.rs
+++ b/tests/ui/error-codes/E0010-teach.rs
@@ -1,8 +1,7 @@
// compile-flags: -Z teach
-#![feature(box_syntax)]
#![allow(warnings)]
-const CON : Box<i32> = box 0; //~ ERROR E0010
-
+const CON: Vec<i32> = vec![1, 2, 3]; //~ ERROR E0010
+//~| ERROR cannot call non-const fn
fn main() {}