1 2 3 4 5 6 7 8 9 10 11 12 13 14
fn f(_: bool) {} struct Foo { cx: bool, } impl Foo { fn bar() { f(cx); //~^ ERROR cannot find value `cx` in this scope } } fn main() {}