15 lines
102 B
Rust
15 lines
102 B
Rust
|
|
||
|
enum S = ();
|
||
|
|
||
|
impl S {
|
||
|
fn foo() { }
|
||
|
}
|
||
|
|
||
|
trait T {
|
||
|
fn bar();
|
||
|
}
|
||
|
|
||
|
impl S: T {
|
||
|
fn bar() { }
|
||
|
}
|