mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
21 lines
422 B
Rust
21 lines
422 B
Rust
fn main() {}
|
|
|
|
struct S;
|
|
|
|
impl S {
|
|
fn foo() {}
|
|
|
|
fn bar(&self) {}
|
|
|
|
fn baz(a: u8, b: u8) {}
|
|
|
|
fn b() {
|
|
fn c() {
|
|
foo(); //~ ERROR cannot find function `foo` in this scope
|
|
}
|
|
foo(); //~ ERROR cannot find function `foo` in this scope
|
|
bar(); //~ ERROR cannot find function `bar` in this scope
|
|
baz(2, 3); //~ ERROR cannot find function `baz` in this scope
|
|
}
|
|
}
|