test: Add a trivial test that trait composition parses
This commit is contained in:
parent
b65dd9d090
commit
5012abde8f
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…
Reference in New Issue
Block a user