test: Add a trivial test that trait composition parses
This commit is contained in:
parent
b65dd9d090
commit
5012abde8f
1 changed files with 11 additions and 0 deletions
11
src/test/run-pass/trait-composition-trivial.rs
Normal file
11
src/test/run-pass/trait-composition-trivial.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
trait Foo {
|
||||
fn foo();
|
||||
}
|
||||
|
||||
trait Bar : Foo {
|
||||
fn bar();
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue