summary refs log tree commit diff
path: root/src/test/ui/const-generics/const-expression-parameter.rs
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2019-05-06 17:00:01 +0100
committervarkor <github@varkor.com>2019-05-06 17:00:01 +0100
commit594685b5a2f35e2ff4fc01aca2ae91de92ed0993 (patch)
tree1acec67c4d1e186d0ec58e70e29411a7b38c13ea /src/test/ui/const-generics/const-expression-parameter.rs
parent7ac02005f3d7ac4b2c32b82dde365107aa2aafdf (diff)
downloadrust-594685b5a2f35e2ff4fc01aca2ae91de92ed0993.tar.gz
rust-594685b5a2f35e2ff4fc01aca2ae91de92ed0993.zip
`token::LArrow` can begin arguments
`<-` may indicate the start of a negative const argument.
Diffstat (limited to 'src/test/ui/const-generics/const-expression-parameter.rs')
-rw-r--r--src/test/ui/const-generics/const-expression-parameter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/const-generics/const-expression-parameter.rs b/src/test/ui/const-generics/const-expression-parameter.rs
index 662c7b767ba..22c6c351622 100644
--- a/src/test/ui/const-generics/const-expression-parameter.rs
+++ b/src/test/ui/const-generics/const-expression-parameter.rs
@@ -6,7 +6,7 @@ fn i32_identity<const X: i32>() -> i32 {
 }
 
 fn foo_a() {
-    i32_identity::<-1>(); //~ ERROR expected identifier, found `<-`
+    i32_identity::<-1>(); // ok
 }
 
 fn foo_b() {