Methods with no body

This commit is contained in:
2026-05-10 18:10:13 +02:00
parent 380755bf83
commit e97b3cac8f
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
use <std::fmt>;
public trait TestLogging<T: fmt::Display>: fmt::Display {}
public trait TestLogging<T: fmt::Display>: fmt::Display {
String get();
}
public enum LogLevel {
Info,
+1 -1
View File
@@ -265,7 +265,7 @@ impl_decl = {
trait_requirements = { ":" ~ type_expr_param ~ ("+" ~ type_expr_param)* }
method_no_body = {
export? ~ type_expr ~ identifier ~ generics? ~ "(" ~ self_param? ~ ("," ~ param_list?)? ~ ")"
export? ~ type_expr ~ identifier ~ generics? ~ "(" ~ self_param? ~ ("," ~ param_list?)? ~ ")" ~ semicolon
}
trait_item = _{