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