2016-04-26 12:51:14 -05:00
|
|
|
// compile-flags: -Cmetadata=aux
|
|
|
|
|
|
|
|
use std::ops::Deref;
|
|
|
|
|
|
|
|
pub struct Foo;
|
|
|
|
|
|
|
|
impl Deref for Foo {
|
2017-10-30 20:01:23 -05:00
|
|
|
type Target = String;
|
|
|
|
fn deref(&self) -> &String { loop {} }
|
2016-04-26 12:51:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Bar;
|
|
|
|
pub struct Baz;
|
|
|
|
|
|
|
|
impl Baz {
|
|
|
|
pub fn baz(&self) {}
|
|
|
|
pub fn static_baz() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Deref for Bar {
|
|
|
|
type Target = Baz;
|
|
|
|
fn deref(&self) -> &Baz { loop {} }
|
2015-03-18 16:05:24 -05:00
|
|
|
}
|