]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-expression-parameter.stderr
test for #50518
[rust.git] / src / test / ui / const-generics / const-expression-parameter.stderr
1 error: expected identifier, found `<-`
2   --> $DIR/const-expression-parameter.rs:9:19
3    |
4 LL |     i32_identity::<-1>();
5    |                   ^^ expected identifier
6
7 error: expected one of `,` or `>`, found `+`
8   --> $DIR/const-expression-parameter.rs:13:22
9    |
10 LL |     i32_identity::<1 + 2>();
11    |                      ^ expected one of `,` or `>` here
12
13 warning: the feature `const_generics` is incomplete and may cause the compiler to crash
14   --> $DIR/const-expression-parameter.rs:1:12
15    |
16 LL | #![feature(const_generics)]
17    |            ^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20