diff options
Diffstat (limited to 'tests/ui/consts/const-vec-syntax.rs')
-rw-r--r-- | tests/ui/consts/const-vec-syntax.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/consts/const-vec-syntax.rs b/tests/ui/consts/const-vec-syntax.rs new file mode 100644 index 000000000..61246e44e --- /dev/null +++ b/tests/ui/consts/const-vec-syntax.rs @@ -0,0 +1,9 @@ +// run-pass +// pretty-expanded FIXME #23616 + +fn f(_: &[isize]) {} + +pub fn main() { + let v = [ 1, 2, 3 ]; + f(&v); +} |