blob: 2c130664e9a1fba53712983945ebefcb1ffe009e [file] [log] [blame]
trait Foo {
type Bar;
}
impl Foo for () {
type Bar = impl std::fmt::Debug;
//~^ ERROR: `impl Trait` in associated types is unstable
//~| ERROR: unconstrained opaque type
}
struct Mop;
impl Mop {
type Bop = impl std::fmt::Debug;
//~^ ERROR: `impl Trait` in associated types is unstable
//~| ERROR: inherent associated types are unstable
//~| ERROR: unconstrained opaque type
}
fn main() {}