diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-08-18 22:44:06 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-08-18 22:44:06 +0200 |
| commit | 7542615c21ad7fef1cbd160252ba1bf4b7b4289c (patch) | |
| tree | 770418c4943bc54b199bae6d8f48e20c906c498b /src/test/ui/const-generics/array-size-in-generic-struct-param.min.stderr | |
| parent | 6ad01e993272132b96e9f1f9c390c85816672ce3 (diff) | |
| download | rust-7542615c21ad7fef1cbd160252ba1bf4b7b4289c.tar.gz rust-7542615c21ad7fef1cbd160252ba1bf4b7b4289c.zip | |
change const param ty warning message
Diffstat (limited to 'src/test/ui/const-generics/array-size-in-generic-struct-param.min.stderr')
| -rw-r--r-- | src/test/ui/const-generics/array-size-in-generic-struct-param.min.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/const-generics/array-size-in-generic-struct-param.min.stderr b/src/test/ui/const-generics/array-size-in-generic-struct-param.min.stderr index 61d23475c6f..809514e8a1c 100644 --- a/src/test/ui/const-generics/array-size-in-generic-struct-param.min.stderr +++ b/src/test/ui/const-generics/array-size-in-generic-struct-param.min.stderr @@ -14,7 +14,7 @@ LL | arr: [u8; CFG.arr_size], | = help: it is currently only allowed to use either `CFG` or `{ CFG }` as generic constants -error: using `Config` as const generic parameters is forbidden +error: `Config` is forbidden as the type of a const generic parameter --> $DIR/array-size-in-generic-struct-param.rs:18:21 | LL | struct B<const CFG: Config> { |
