mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
cdcca7e8f4
They are mostly used in diagnostics anyway
13 lines
212 B
Rust
13 lines
212 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() {}
|