mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
2a1d748254
or inline such functions if useless.
12 lines
214 B
Rust
12 lines
214 B
Rust
#![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`
|
|
}
|
|
|
|
fn main() {}
|