rust/crates/ra_syntax/test_data/parser/ok/0030_traits.rs
Toby Dimmick 7e66785859 Rework value parameter parsing
- `Fn__(...)` parameters with idents/patterns no longer parse
- Trait function parameters with arbitrary patterns parse
- Trait function parameters without idents/patterns no longer parse
- `fn(...)` parameters no longer parse with patterns other than a single ident
2020-02-06 19:45:51 +00:00

7 lines
96 B
Rust

trait Runnable {
fn handler();
}
trait TraitWithExpr {
fn fn_with_expr(x: [i32; 1]);
}