13 lines
101 B
Text
13 lines
101 B
Text
trait Foo {
|
|
fn foo();
|
|
}
|
|
|
|
struct Bar impls Foo {
|
|
|
|
}
|
|
|
|
fn test(f: impl Foo) {
|
|
}
|
|
|
|
x = Bar {}
|
|
test(x)
|