From 9be35f82c1abf2ecbab489bca9eca138ea648312 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Sat, 27 Jul 2019 01:33:01 +0300 Subject: tests: Move run-pass tests without naming conflicts to ui --- src/test/ui/consts/const-expr-in-vec-repeat.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/test/ui/consts/const-expr-in-vec-repeat.rs (limited to 'src/test/ui/consts/const-expr-in-vec-repeat.rs') diff --git a/src/test/ui/consts/const-expr-in-vec-repeat.rs b/src/test/ui/consts/const-expr-in-vec-repeat.rs new file mode 100644 index 00000000000..4eaef25059b --- /dev/null +++ b/src/test/ui/consts/const-expr-in-vec-repeat.rs @@ -0,0 +1,11 @@ +// run-pass +// Check that constant expressions can be used in vec repeat syntax. + +// pretty-expanded FIXME #23616 + +pub fn main() { + + const FOO: usize = 2; + let _v = [0; FOO*3*2/2]; + +} -- cgit 1.4.1-3-g733a5