forked from M-Labs/nac3
fix error message string (2)
This commit is contained in:
parent
da039e3acf
commit
59ac5aae8a
|
@ -923,7 +923,7 @@ impl<'a> Inferencer<'a> {
|
|||
(Some((ty, true)), _) => Ok(*ty),
|
||||
(Some((ty, false)), false) => Ok(*ty),
|
||||
(Some((_, false)), true) => {
|
||||
report_error(&format!("Field {} should be immutable", attr), value.location)
|
||||
report_error(&format!("Field `{}` is immutable", attr), value.location)
|
||||
}
|
||||
(None, _) => {
|
||||
let t = self.unifier.stringify(ty);
|
||||
|
|
Loading…
Reference in New Issue