blob: 25cdfa909907097a2ecf1f3f5e40dc2e84a36dcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
pub trait Foo {
#[inline(always)]
fn f(&self);
}
pub struct Bar {
pub x: String
}
impl Foo for Bar {
#[inline(always)]
fn f(&self) {
println!("{}", (*self).x);
}
}
|