Methods with no body
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
use <std::fmt>;
|
use <std::fmt>;
|
||||||
|
|
||||||
public trait TestLogging<T: fmt::Display>: fmt::Display {}
|
public trait TestLogging<T: fmt::Display>: fmt::Display {
|
||||||
|
String get();
|
||||||
|
}
|
||||||
|
|
||||||
public enum LogLevel {
|
public enum LogLevel {
|
||||||
Info,
|
Info,
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ impl_decl = {
|
|||||||
trait_requirements = { ":" ~ type_expr_param ~ ("+" ~ type_expr_param)* }
|
trait_requirements = { ":" ~ type_expr_param ~ ("+" ~ type_expr_param)* }
|
||||||
|
|
||||||
method_no_body = {
|
method_no_body = {
|
||||||
export? ~ type_expr ~ identifier ~ generics? ~ "(" ~ self_param? ~ ("," ~ param_list?)? ~ ")"
|
export? ~ type_expr ~ identifier ~ generics? ~ "(" ~ self_param? ~ ("," ~ param_list?)? ~ ")" ~ semicolon
|
||||||
}
|
}
|
||||||
|
|
||||||
trait_item = _{
|
trait_item = _{
|
||||||
|
|||||||
Reference in New Issue
Block a user