mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
15 lines
347 B
Rust
15 lines
347 B
Rust
struct A;
|
|
|
|
impl A {
|
|
//~^ NOTE `Self` type implicitly declared here, by this `impl`
|
|
fn banana(&mut self) {
|
|
fn peach(this: &Self) {
|
|
//~^ ERROR can't use generic parameters from outer function
|
|
//~| NOTE use of generic parameter from outer function
|
|
//~| NOTE use a type here instead
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|