blob: 3c2e2d9db727e5ff7fdf265fd39d3e852c1ae431 [file] [log] [blame] [edit]
#![feature(type_alias_impl_trait)]
struct Foo;
type Bar = impl Sized;
//~^ ERROR unconstrained opaque type
impl Foo {
fn foo(self: Bar) {}
//~^ ERROR: invalid `self` parameter type: `Bar`
//~| ERROR: item does not constrain
}
fn main() {}