mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 00:53:04 +00:00
13 lines
217 B
Rust
13 lines
217 B
Rust
#![feature(type_alias_impl_trait)]
|
|
struct Foo;
|
|
|
|
type Bar = impl Sized;
|
|
|
|
impl Foo {
|
|
fn foo(self: Bar) {}
|
|
//~^ ERROR: invalid `self` parameter type: `Bar`
|
|
//~| ERROR: item does not constrain
|
|
}
|
|
|
|
fn main() {}
|