1
0
forked from M-Labs/nac3

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

View File

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