]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/unresolved_static_type_field.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / 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() {}