rust/crates/ra_syntax/test_data/parser/ok/0030_traits.rs

12 lines
164 B
Rust
Raw Normal View History

2018-08-13 10:23:14 -05:00
pub trait WriteMessage {
fn write_message(&FrontendMessage);
}
trait Runnable {
fn handler();
}
trait TraitWithExpr {
fn fn_with_expr(x: [i32; 1]);
}