forked from M-Labs/nac3
1
0
Fork 0

composer: improve class field typevar error message

This commit is contained in:
Sebastien Bourdeauducq 2022-03-17 21:04:42 +08:00
parent fb8553311c
commit c5993c2a58
1 changed files with 1 additions and 1 deletions

View File

@ -1282,7 +1282,7 @@ impl TopLevelComposer {
if !class_type_vars_def.contains(&t) {
return Err(format!(
"class fields can only use type \
vars declared as class generic type vars (at {})",
vars over which the class is generic (at {})",
annotation.location
));
}