]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/unresolved_static_type_field.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[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() {}