1 2 3 4 5 6 7 8 9 10 11
// error-pattern: unresolved identifier obj oT() { fn get() -> int { ret 3; } fn foo() { auto c = get(); } } fn main() { }