about summary refs log tree commit diff
path: root/tests/ui/binding/const-param.stderr
blob: b0b8108945c9853eab160c66425362c36ac24867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0158]: constant parameters cannot be referenced in patterns
  --> $DIR/const-param.rs:5:9
   |
LL | fn check<const N: usize>() {
   |          -------------- constant defined here
LL |     match 1 {
LL |         N => {}
   |         ^ can't be used in patterns

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0158`.