]> git.lizzy.rs Git - rust.git/blob - src/test/ui/confuse-field-and-method/issue-18343.rs
Merge commit '54a20a02ecd0e1352a871aa0990bcc8b8b03173e' into clippyup
[rust.git] / src / test / ui / confuse-field-and-method / issue-18343.rs
1 struct Obj<F> where F: FnMut() -> u32 {
2     closure: F,
3 }
4
5 fn main() {
6     let o = Obj { closure: || 42 };
7     o.closure();
8     //~^ ERROR no method named `closure` found
9 }