2018-08-30 07:18:55 -05:00
|
|
|
//@ run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 15:13:15 -05:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2012-09-02 18:50:00 -05:00
|
|
|
struct Foo {
|
2015-03-25 19:06:52 -05:00
|
|
|
x: isize,
|
2012-09-02 18:50:00 -05:00
|
|
|
}
|
|
|
|
|
2013-05-31 17:17:22 -05:00
|
|
|
impl Foo {
|
2013-08-02 23:41:06 -05:00
|
|
|
pub fn f(&self) {}
|
2012-09-02 18:50:00 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn g(x: &mut Foo) {
|
|
|
|
x.f();
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2012-09-02 18:50:00 -05:00
|
|
|
}
|