mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00
11 lines
196 B
Rust
11 lines
196 B
Rust
trait T {
|
|
fn f(self);
|
|
}
|
|
impl T for () {
|
|
fn f(self) {
|
|
let self = (); //~ ERROR expected unit struct, unit variant or constant, found local variable `self`
|
|
}
|
|
}
|
|
|
|
fn main() {}
|