]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/unresolved_static_type_field.rs
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
[rust.git] / src / test / ui / resolve / unresolved_static_type_field.rs
1 fn f(_: bool) {}
2
3 struct Foo {
4     cx: bool,
5 }
6
7 impl Foo {
8     fn bar() {
9         f(cx);
10         //~^ ERROR cannot find value `cx` in this scope
11     }
12 }
13
14 fn main() {}