2024-02-21 08:29:28 -06:00
|
|
|
#![feature(type_alias_impl_trait)]
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
type Bar = impl Sized;
|
|
|
|
//~^ ERROR unconstrained opaque type
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
fn foo(self: Bar) {}
|
2024-04-24 20:11:19 -05:00
|
|
|
//~^ ERROR: invalid `self` parameter type: `Bar`
|
2024-06-10 11:17:38 -05:00
|
|
|
//~| ERROR: item does not constrain
|
2024-02-21 08:29:28 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|