about summary refs log tree commit diff
path: root/tests/ui/const-generics/mgca/missing_generic_params.stderr
blob: 78010c756212c13560c40f291df1ebc1e66f98ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0107]: missing generics for function `N`
  --> $DIR/missing_generic_params.rs:13:21
   |
LL | impl Trait for [(); N] {}
   |                     ^ expected 1 generic argument
   |
note: function defined here, with 1 generic parameter: `T`
  --> $DIR/missing_generic_params.rs:15:4
   |
LL | fn N<T>() {}
   |    ^ -
help: add missing generic argument
   |
LL | impl Trait for [(); N<T>] {}
   |                      +++

error: aborting due to 1 previous error

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