rust/tests/ui/resolve/unresolved_static_type_fiel...

15 lines
167 B
Rust

fn f(_: bool) {}
struct Foo {
cx: bool,
}
impl Foo {
fn bar() {
f(cx);
//~^ ERROR cannot find value `cx` in this scope
}
}
fn main() {}