summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/unresolved_static_type_field.rs
blob: 494ad083f1a87a684ba377e3362470fbe3d8be80 (plain)
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() {}