2016-04-26 10:51:14 -07:00
|
|
|
// compile-flags: -Cmetadata=aux
|
|
|
|
|
|
|
|
use std::ops::Deref;
|
|
|
|
|
|
|
|
pub struct Foo;
|
|
|
|
|
|
|
|
impl Deref for Foo {
|
2017-10-31 02:01:23 +01:00
|
|
|
type Target = String;
|
|
|
|
fn deref(&self) -> &String { loop {} }
|
2016-04-26 10:51:14 -07: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 22:05:24 +01:00
|
|
|
}
|