1
1
error: expected identifier, found `<-`
2
2
--> $DIR/const-expression-parameter.rs:9:19
3
3
|
4
- LL | u32_identity ::<-1>(); //~ ERROR expected identifier, found `<-`
4
+ LL | i32_identity ::<-1>(); //~ ERROR expected identifier, found `<-`
5
5
| ^^ expected identifier
6
6
7
7
error: expected one of `,` or `>`, found `+`
8
8
--> $DIR/const-expression-parameter.rs:13:22
9
9
|
10
- LL | u32_identity ::<1 + 2>(); //~ ERROR expected one of `,` or `>`, found `+`
10
+ LL | i32_identity ::<1 + 2>(); //~ ERROR expected one of `,` or `>`, found `+`
11
11
| ^ expected one of `,` or `>` here
12
12
13
13
warning: 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
16
16
LL | #![feature(const_generics)]
17
17
| ^^^^^^^^^^^^^^
18
18
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
28
20
29
- For more information about this error, try `rustc --explain E0600`.
0 commit comments