1
Fork 0

change const param ty warning message

This commit is contained in:
Bastian Kauschke 2020-08-18 22:44:06 +02:00
parent 6ad01e9932
commit 7542615c21
27 changed files with 78 additions and 86 deletions

View file

@ -16,7 +16,7 @@ struct Config {
}
struct B<const CFG: Config> {
//[min]~^ ERROR using `Config` as const generic parameters is forbidden
//[min]~^ ERROR `Config` is forbidden
arr: [u8; CFG.arr_size],
//[full]~^ ERROR constant expression depends on a generic parameter
//[min]~^^ ERROR generic parameters must not be used inside of non trivial