11error: expected identifier, found `<-`
22 --> $DIR/const-expression-parameter.rs:9:19
33 |
4- LL | u32_identity ::<-1>(); //~ ERROR expected identifier, found `<-`
4+ LL | i32_identity ::<-1>(); //~ ERROR expected identifier, found `<-`
55 | ^^ expected identifier
66
77error: expected one of `,` or `>`, found `+`
88 --> $DIR/const-expression-parameter.rs:13:22
99 |
10- LL | u32_identity ::<1 + 2>(); //~ ERROR expected one of `,` or `>`, found `+`
10+ LL | i32_identity ::<1 + 2>(); //~ ERROR expected one of `,` or `>`, found `+`
1111 | ^ expected one of `,` or `>` here
1212
1313warning: the feature `const_generics` is incomplete and may cause the compiler to crash
@@ -16,14 +16,5 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
1616LL | #![feature(const_generics)]
1717 | ^^^^^^^^^^^^^^
1818
19- error[E0600]: cannot apply unary operator `-` to type `u32`
20- --> $DIR/const-expression-parameter.rs:17:21
21- |
22- LL | u32_identity::< -1 >(); // ok
23- | ^^ cannot apply unary operator `-`
24- |
25- = note: unsigned values cannot be negated
26-
27- error: aborting due to 3 previous errors
19+ error: aborting due to 2 previous errors
2820
29- For more information about this error, try `rustc --explain E0600`.
0 commit comments