blob: faccf90ff44531b3aeec819597e678923e24e830 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
mod types {
use inherent::inherent;
trait Trait {
fn f();
}
pub struct Struct;
#[inherent]
impl Trait for Struct {
fn f() {}
}
}
fn main() {
types::Struct::f();
}
|