Skip to content

Commit c73e857

Browse files
committed
Add suggestions for available types in unexpected type error
1 parent cc8ce1e commit c73e857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl Display for QccErrorKind {
9595
ExpectedFnArgs => "expected function arguments in parenthesis",
9696
ExpectedParamType => "expected parameter type",
9797
ExpectedType => "expected a type",
98-
UnexpectedType => "unexpected type",
98+
UnexpectedType => "unexpected type [available: bit, rad, f64, qbit]",
9999
ExpectedFnBody => "expected function body",
100100
ExpectedFnReturnType => "expected function return type",
101101
ExpectedFnBodyEnd => "expected end of function body",

0 commit comments

Comments
 (0)