13 lines
140 B
Rust
13 lines
140 B
Rust
// error-pattern:expecting ., found (
|
|
fn main() {
|
|
|
|
obj foo() {
|
|
fn m() {
|
|
self();
|
|
}
|
|
}
|
|
|
|
auto a = foo;
|
|
a.m();
|
|
}
|