diff --git a/dust-lang/src/compiler.rs b/dust-lang/src/compiler.rs index 36aacfc..e01d10d 100644 --- a/dust-lang/src/compiler.rs +++ b/dust-lang/src/compiler.rs @@ -691,8 +691,8 @@ impl<'src> Compiler<'src> { )?; } Token::Minus | Token::MinusEqual => { - Compiler::expect_addable_type(&right_type, &right_position)?; - Compiler::expect_addable_types( + Compiler::expect_subtractable_type(&right_type, &right_position)?; + Compiler::expect_subtractable_types( &left_type, &left_position, &right_type,