1 #![feature(trait_upcasting)]
3 trait Foo: PartialEq<i32> + std::fmt::Debug + Send + Sync {
52 let baz: &dyn Baz = &1;
54 let bar: &dyn Bar = baz;
56 //~^ ERROR no method named `c` found for reference `&dyn Bar` in the current scope [E0599]
58 let foo: &dyn Foo = baz;
60 //~^ ERROR no method named `b` found for reference `&dyn Foo` in the current scope [E0599]
62 //~^ ERROR no method named `c` found for reference `&dyn Foo` in the current scope [E0599]
64 let foo: &dyn Foo = bar;
66 //~^ ERROR no method named `b` found for reference `&dyn Foo` in the current scope [E0599]
68 //~^ ERROR no method named `c` found for reference `&dyn Foo` in the current scope [E0599]