]> git.lizzy.rs Git - rust.git/blob - src/test/ui/confuse-field-and-method/issue-18343.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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 }